When setting out to build an e-commerce site, you could use many different products.
You need to choose the following:
Some of these choices are dependent on the others. For example, not all operating systems run on all hardware, not all scripting languages can connect to all databases, and
so on.
Some of PHP´s main competitors are Perl, Microsoft ASP.NET, JavaServer Pages (JSP), and ColdFusion.
In comparison to these products, PHP has many strengths, including the following:
A more detailed discussion of these strengths follows.
PHP is very efficient. Using a single inexpensive server, you can serve millions of hits per day. If you use large numbers of commodity servers, your capacity is effectively unlimited.
Benchmarks published by Zend Technologies (http://www.zend.com) show PHP outperforming its competition.
PHP has native connections available to many database systems. In addition to MySQL, you can directly connect to PostgreSQL, mSQL, Oracle, dbm, FilePro, Hyperwave,
Informix, InterBase, and Sybase databases, among others. PHP 5 also has a built-in SQL interface to a flat file, called SQLite.
Using the Open Database Connectivity Standard (ODBC), you can connect to any database that provides an ODBC driver.This includes Microsoft products and many others.
Because PHP was designed for use on the Web, it has many built-in functions for performing many useful web-related tasks.You can generate GIF images on the fly, connect
to web services and other network services, parse XML, send email, work with cookies, and generate PDF documents, all with just a few lines of code.
PHP is free.You can download the latest version at any time from http://www.php.net for no charge.
The syntax of PHP is based on other programming languages, primarily C and Perl. If you already know C or Perl, or a C-like language such as C++ or Java, you will be productive
using PHP almost immediately.
PHP version 5 has well-designed object-oriented features. If you learned to program in Java or C++, you will find the features (and generally the syntax) that you expect, such
as inheritance, private and protected attributes and methods, abstract classes and methods, interfaces, constructors, and destructors.You will even find some less common features such as built-in iteration behavior. Some of this functionality was available in PHP versions 3 and 4, but the object-oriented support in version 5 is much more complete.
PHP is available for many different operating systems.You can write PHP code on free Unix-like operating systems such as Linux and FreeBSD, commercial Unix versions such
as Solaris and IRIX, or on different versions of Microsoft Windows. Well-written code will usually work without modification on a different system running PHP.
You have access to PHP´s source code.With PHP, unlike commercial, closed-source products, if you want to modify something or add to the language, you are free to do so.
You do not need to wait for the manufacturer to release patches.You also don´t need to worry about the manufacturer going out of business or deciding to stop supporting a
product.
Zend Technologies (www.zend.com), the company behind the engine that powers PHP, funds its PHP development by offering support and related software on a commercial
basis.
You may have recently moved to PHP 5.0 from one of the PHP 4.x versions. As you would expect in a new major version, it has some significant changes.The Zend engine
beneath PHP has been rewritten for this version. Major new features are as follows:
Other changes include moving some extensions out of the default PHP install and into the PECL library, improving streams support, and adding SQLite.
MySQL´s main competitors are PostgreSQL, Microsoft SQL Server, and Oracle.
MySQL has many strengths, including the following:
A more detailed discussion of these strengths follows.
MySQL is undeniably fast.You can see the developers´ benchmark page at http://web.mysql.com/benchmark.html. Many of these benchmarks show MySQL to be
orders of magnitude faster than the competition. In 2002, eWeek published a benchmark comparing five databases powering a web application.The best result was a tie between
MySQL and the much more expensive Oracle.
Introduction
MySQL is available at no cost under an open source license or at low cost under a commercial license.You need a license if you want to redistribute MySQL as part of an
application and do not want to license your application under an Open Source license. If you do not intend to distribute your application or are working on Free Software, you
do not need to buy a license.
Most modern databases use SQL. If you have used another RDBMS, you should have no trouble adapting to this one. MySQL is also easier to set up than many similar products.
MySQL can be used on many different Unix systems as well as under Microsoft
Windows.
As with PHP, you can obtain and modify the source code for MySQL.This point is not important to most users most of the time, but it provides you with excellent peace of
mind, ensuring future continuity and giving you options in an emergency.
Not all open source products have a parent company offering support, training, consulting,
and certification, but you can get all of these benefits from MySQL AB
(www.mysql.com).
Major changes introduced for MySQL 5.0 include
Other changes include more ANSI standard compliance and speed improvements. If you are still using an early 4.x version or a 3.x version of the MySQL server, you
should know that the following features were added to various versions from 4.0: