0% found this document useful (0 votes)
131 views6 pages

Zen Cart

Uploaded by

445444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views6 pages

Zen Cart

Uploaded by

445444
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

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. 

Joomla! is a free and open source content management system (CMS) for publishing content on


the World Wide Web and intranets. It comprises a model–view–controller(MVC) Web application
framework that can also be used independently.

Joomla! is written in PHP, uses object-oriented programming (OOP) techniques andsoftware design


patterns, stores data in a MySQL database, and includes features such as page caching, RSS feeds,
printable versions of pages, news flashes, blogs, polls, search, and support for language
internationalization.

What's a content management system (CMS)?

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:

 Corporate Web sites or portals


 Corporate intranets and extranets
 Online magazines, newspapers, and publications
 E-commerce and online reservations
 Government applications
 Small business Web sites

These are examples of popular websites based on the Joomla CMS:Linux.com[22] iTWire.com[23

Model–view–controller (MVC) is a software architecture,[1] currently considered an architectural


pattern used in software engineering. The pattern isolates "domain logic" (the application logic for the
user) from the user interface (input and presentation), permitting independent development, testing and
maintenance of each (separation of concerns).

CakePHP is an open source web application framework for producing web applications. It is written


in PHP, modeled after the concepts of Ruby on Rails, and distributed under theMIT License.[1]

phpXCore is a free open source content management framework for creating customizedcontent


management systems written in PHP. phpXCore framework bases on Model-view-controller design
pattern and supports both PHP4 and PHP5.

Zend Framework (ZF) is an open source, object-oriented web application frameworkimplemented in PHP


5 and licensed under the New BSD License.[3]

osCommerce (“open source Commerce”) is an e-commerce and online store-


management software program. It can be used on any web server that has PHP andMySQL installed. It is
available as free software under the GNU General Public 

List of free and open source eCommerce software

Magento osCommerce OpenCart Zen Cart

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 vs. Web 2.0


Web 1.0 was top-down. Web 2.0 is bottom-up.
 Web 1.0 was about client-server, Web 2.0 is about peer to peer

 Web 1.0 was about HTML, Web 2.0 is about XML

 Web 1.0 was about home pages, Web 2.0 is about blogs
Web 1.0 was text. Web 2.0 is video.

Web 1.0 was about Netscape, Web 2.0 is about Google

 Web 1.0 was about dialup, Web 2.0 is about broadband


 Web 1.0 was about hardware costs, Web 2.0 is about bandwidth costs

The PHP mail() Function


mail(to,subject,message,headers,parameters)

<?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.

How to Create a Cookie?

The setcookie() function is used to set a cookie.

Note: The setcookie() function must appear BEFORE the <html> tag.

Syntax
setcookie(name, value, expire, path, domain);

<table width="300" border="0" align="center" cellpadding="0" cellspacing="1"


bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Member Login </strong></td>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="myusername" type="text" id="myusername"></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name="mypassword" type="text" id="mypassword"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Login"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>

Create file checklogin.php

 
############### Code

<?php
$host="localhost"; // Host name 
$username=""; // Mysql username 
$password=""; // Mysql password 
$db_name="test"; // Database name 
$tbl_name="members"; // Table name

// Connect to server and select databse.


mysql_connect("$host", "$username", "$password")or die("cannot connect"); 
mysql_select_db("$db_name")or die("cannot select DB");

// username and password sent from form 


$myusername=$_POST['myusername']; 
$mypassword=$_POST['mypassword'];

// To protect MySQL injection (more detail about MySQL injection)


$myusername = stripslashes($myusername);
$mypassword = stripslashes($mypassword);
$myusername = mysql_real_escape_string($myusername);
$mypassword = mysql_real_escape_string($mypassword);

$sql="SELECT * FROM $tbl_name WHERE username='$myusername' and


password='$mypassword'";
$result=mysql_query($sql);

// Mysql_num_row is counting table row


$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row

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";
}
?>

Create file login_success.php

############### Code

// Check if session is not registered , redirect back to main page. 


Logout.php

If you want to logout, create this file

// Put this code in first line of web page. 


<? 
session_start();
session_destroy();
?>
Difference between XML and HTML?
Answer 1.HTML is presentaton language where as XML is not either a
# 3 programing language or a presentation language. It is used
to transfer data between applications and databases.
2.HTML is not case-sensitive where as XML is case-sensitive.
3.In XML we can define our own tags as it is not possible
in HTML.
4.In XML it is mandatory to close each and every tag where
as in HTML it is not required.
5.XML describes the data where as HTML only defines the
data.
In XML, Data is stored in separate XML files but in HTML,
it is stored inside the files.
2.White Spaces is preserved in XML files.
3.HTML is predefined Language. XML is user defined language.
4.To display HTML, we used CSS.In XML, we used XSL.
HTML is static and XML is dynamic.

You might also like