Zen Cart
Zen Cart
truly is the art of e-commerce; a free, user-friendly, open source shopping cart system. The
software is being developed by group of like-minded shop owners, programmers, designers, and
consultants that think e-commerce could be and should be done differently
Zen Cart is an online store management system. It is PHP-based, using a MySQL database and HTML
components Zen Cart branched from osCommerce as a separate project in 2003
What is Joomla?
Joomla is an award-winning content management system (CMS), which enables you to build Web sites
and powerful online applications. Many aspects, including its ease-of-use and extensibility, have made
Joomla the most popular Web site software available. Best of all, Joomla is an open source solution that
is freely available to everyone.
A content management system is software that keeps track of every piece of content on your Web site,
much like your local public library keeps track of books and stores them. Content can be simple text,
photos, music, video, documents, or just about anything you can think of. A major advantage of using a
CMS is that it requires almost no technical skill or knowledge to manage. Since the CMS manages all
your content, you don't have to.
What are some real world examples of what Joomla! can do?
Joomla is used all over the world to power Web sites of all shapes and sizes. For example:
These are examples of popular websites based on the Joomla CMS:Linux.com[22] iTWire.com[23
Opencart is an open source shopping cart system that is available for free. opencart is ran
by community of professional PHP developers and currently is the leading shopping cart on
the market.
Magento is an open source ecommerce web application launched on March 31, 2008. It was created by
Varien, building on components of theZend Framework.[1][2]
Magento is available under the Open Software License version 3.0. Since version 1.1.7 some parts are
licensed under the Academic Free Licenseversion 3.0.[3]
Magento uses PHP as a web server scripting language and the MySQL Database. The data model is
based on the Entity-attribute-value model that stores data objects in tree structures, thus allowing a
change to a data structure without changing the database definition.
Web 1.0 was about home pages, Web 2.0 is about blogs
Web 1.0 was text. Web 2.0 is video.
<?php
$to = "[email protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
<html>
<body>
<?php
if (isset($_REQUEST['email']))
//if "email" is filled out, send email
{
//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail( "[email protected]", "Subject: $subject",
$message, "From: $email" );
echo "Thank you for using our mail form";
}
else
//if "email" is not filled out, display the form
{
echo "<form method='post' action='mailform.php'>
Email: <input name='email' type='text' /><br />
Subject: <input name='subject' type='text' /><br />
Message:<br />
<textarea name='message' rows='15' cols='40'>
</textarea><br />
<input type='submit' />
</form>";
}
?>
</body>
</html>
What is a Cookie?
A cookie is often used to identify a user. A cookie is a small file that the server embeds on
the user's computer. Each time the same computer requests a page with a browser, it will
send the cookie too. With PHP, you can both create and retrieve cookie values.
Syntax
setcookie(name, value, expire, path, domain);
############### Code
<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="members"; // Table name
if($count==1){
// Register $myusername, $mypassword and redirect to file "login_success.php"
session_register("myusername");
session_register("mypassword");
header("location:login_success.php");
}
else {
echo "Wrong Username or Password";
}
?>
############### Code