Friday, 2010-07-30

Who's Online

We have 7 guests online


Breadcrumbs

Home Intro


PHP Introduction


PHP Introduction

 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: 

  • HTML/XHTML
  • JavaScript

 


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
RedOld release; not supported
YellowOld release; still supported
GreenCurrent release
BlueFuture release

 

 

Major versionMinor versionRelease dateNotes
1.01.0.01995-06-08Officially called "Personal Home Page Tools (PHP Tools)". This is the first use of the name "PHP".
2.02.0.01996-04-16Considered by its creator as the "fastest and simplest tool" for creating dynamic web pages.
3.03.0.01998-06-06Development moves from one person to multiple developers. Zeev Suraski and Andi Gutmans rewrite the base for this version.
4.04.0.02000-05-22Added more advanced two-stage parse/execute tag-parsing system called the Zend engine.
4.1.02001-12-10Introduced 'superglobals' ($_GET, $_POST, $_SESSION, etc.)
4.2.02002-04-22Disabled 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.02002-12-27Introduced the CLI, in addition to the CGI.
4.4.02005-07-11Added man pages for phpize and php-config scripts.
4.4.82008-01-03Several 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.92008-08-07More security enhancements and bug fixes. The last release of the PHP 4.4 series.
5.05.0.02004-07-13Zend Engine II with a new object model.
5.1.02005-11-24Performance improvements with introduction of compiler variables in re-engineered PHP Engine.
5.2.02006-11-02Enabled the filter extension by default.
5.2.82008-12-08Emergent bug fix
5.2.92009-02-26Bug and security fixes
5.2.102009-06-18Bug and security fixes
5.3.02009-06-30Namespace 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.06.0.0No date setUnicode support; removal of ereg extension, 'register_globals', 'magic_quotes' and 'safe_mode'; Alternative PHP Cache

 

 

    PHP INSTALL