Because time is valuable, we deliver quick and easy learning. " Never increase, beyond what is necessary, the number of words required to explain anything"
William of Ockham (1285-1349) PHP is a server-side scripting language. What You Should Already Know This tutorial assumes you have a working knowledge of: What is PHP? PHP (or Personal HomePage Tools) was created by Rasmus Lerdorf over three years ago to track visitors to his homepage. PHP has since evolved into a powerful server-side markup language with syntax that resembles a mix between Perl and C. - PHP stands for PHP: Hypertext Preprocessor
- PHP is a server-side scripting language, like ASP
- PHP scripts are executed on the server
- PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
- PHP is an open source software
- PHP is free to download and use
What is a PHP File? - PHP files can contain text, HTML tags and scripts
- PHP files are returned to the browser as plain HTML
- PHP files have a file extension of ".php", ".php3", or ".phtml"
What is MySQL? - MySQL is a database server
- MySQL is ideal for both small and large applications
- MySQL supports standard SQL
- MySQL compiles on a number of platforms
- MySQL is free to download and use
PHP + MySQL - PHP combined with MySQL are cross-platform (you can develop in Windows and serve on a Unix platform)
Why PHP?
- PHP runs on different platforms (Windows, Linux, Unix, etc.)
- PHP is compatible with almost all servers used today (Apache, IIS, etc.)
- PHP is FREE to download from the official PHP resource: www.php.net
- PHP is easy to learn and runs efficiently on the server side
Where to Start? To get access to a web server with PHP support, you can: - Install Apache (or IIS) on your own server, install PHP, and MySQL
- Or find a web hosting plan with PHP and MySQL support
Now more than ever, the Web is a major vehicle for corporate and personal communications. Web sites carry satellite images of Earth in its entirety, search for life in outer space, and house personal photo albums, business shopping carts, and product lists. Many of those web sites are driven by PHP, an open source scripting language primarily designed for generating HTML content. Since its inception in 1994, PHP has swept the Web and continues its phenomenal growth with recent endorsements by IBM and ORACLE corporations (to name a few). Also, the millions of web sites powered by PHP are testament to its popularity and ease of use. It lies in the sweet spot between Perl/CGI, Active Server Pages (ASP), and HTML. Everyday people can learn PHP and can build powerful dynamic web sites with it. Marc Andreessen, chairman of Opsware Inc. and founder of Netscape Communications, recently described PHP as having replaced Java as the ideal programming language for the Web. The core PHP language (Version 5+) features powerful string- and array-handling facilities, as well as greatly improved support for object-oriented programming. With the use of standard and optional extension modules, a PHP application can interact with a database such as MySQL or Oracle, draw graphs, create PDF files, and parse XML files. You can write your own PHP extension modules in C for example, to provide a PHP interface to the functions in an existing code library. You can even run PHP on Windows, which lets you control other Windows applications such as Word and Excel with COM or interact with databases using ODBC. This tutorial is a guide to the PHP language. When you finish it, you will know how the PHP language works, how to use the many powerful extensions that come standard with PHP, and how to design and build your own PHP web applications. Release history
| Meaning |
|---|
| Red | Old release; not supported | | Yellow | Old release; still supported | | Green | Current release | | Blue | Future release | | Major version | Minor version | Release date | Notes |
|---|
| 1.0 | 1.0.0 | 1995-06-08 | Officially called "Personal Home Page Tools (PHP Tools)". This is the first use of the name "PHP". |
|---|
| 2.0 | 2.0.0 | 1996-04-16 | Considered by its creator as the "fastest and simplest tool" for creating dynamic web pages. |
|---|
| 3.0 | 3.0.0 | 1998-06-06 | Development moves from one person to multiple developers. Zeev Suraski and Andi Gutmans rewrite the base for this version. |
|---|
| 4.0 | 4.0.0 | 2000-05-22 | Added more advanced two-stage parse/execute tag-parsing system called the Zend engine. |
|---|
| 4.1.0 | 2001-12-10 | Introduced 'superglobals' ($_GET, $_POST, $_SESSION, etc.) | | 4.2.0 | 2002-04-22 | Disabled register_globals by default. Data received over the network is not inserted directly into the global namespace anymore, closing possible security holes in applications. | | 4.3.0 | 2002-12-27 | Introduced the CLI, in addition to the CGI. | | 4.4.0 | 2005-07-11 | Added man pages for phpize and php-config scripts. | | 4.4.8 | 2008-01-03 | Several security enhancements and bug fixes. Was to be the end of life release for PHP 4. Security updates only until 2008-08-08, if necessary. | | 4.4.9 | 2008-08-07 | More security enhancements and bug fixes. The last release of the PHP 4.4 series. | | 5.0 | 5.0.0 | 2004-07-13 | Zend Engine II with a new object model. |
|---|
| 5.1.0 | 2005-11-24 | Performance improvements with introduction of compiler variables in re-engineered PHP Engine. | | 5.2.0 | 2006-11-02 | Enabled the filter extension by default. | | 5.2.8 | 2008-12-08 | Emergent bug fix | | 5.2.9 | 2009-02-26 | Bug and security fixes | | 5.2.10 | 2009-06-18 | Bug and security fixes | | 5.3.0 | 2009-06-30 | Namespace support; Late static bindings, Jump label (limited goto), Native closures, Native PHP archives (phar), Garbage collection for circular references, Majorly improved Windows support, Persistent connections with mysqli, sqlite3, fileinfo as a replacement for mime_magic for better MIME support, Ternary shortcut and the Internationalization extension | | 6.0 | 6.0.0 | No date set | Unicode support; removal of ereg extension, 'register_globals', 'magic_quotes' and 'safe_mode'; Alternative PHP Cache | PHP INSTALL
|