PHP Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 3.00

What Is PHP?

This section describes what is PHP language and what are main features supported in PHP.

What Is PHP? PHP stands for PHP: Hypertext Preprocessor, a recursive acronym. It is mainly a Web server side scripting language. But it can also be used for other purposes.

PHP was originally created by Rasmus Lerdorf in 1995 as a simple Web page generation tool named as PHP/FI (Personal Home Page/Forms Interpreter). Today it becomes the number one of server side scripting languages. Here is a comparison of number of matches on Google for key words: "PHP script", "Perl script", and "ASP script":

Key words     Number of matches

PHP script    13,600,000 
Perl script   11,900,000 
ASP script     8,650,000 

Main features of PHP:

  • Cookies - PHP transparently supports HTTP cookies.
  • Sessions - PHP supports sessions to allow you to preserve certain data across subsequent accesses.
  • Connection handling - PHP maintains a connection in 3 possible states: NORMAL, ABORTED, and TIMEOUT.
  • Using remote files - PHP allows you to open remote files with Internet protocols like HTTP or FTP.
  • Persistent Database Connections - PHP supports persistent connections to database servers.
  • File uploads - PHP allows Web users to upload single or multiple files.
  • Safe mode - PHP supports a safe mode with many built-in functions restricted or disabled.
  • Command line - PHP supports many command line options.

Last update: 2005.

Sections in This Chapter

What Is PHP?

Downloading and Installing PHP 5.0.4 for Windows

Downloading and Installing PHP 5.2.2 for Windows

"php -help" - Command Line Options

"php -m" - Compiled-in Modules

"php -i" - PHP Engine Information

Hello.php - My First PHP Script

Adding PHP to IIS as CGI

Dr. Herong Yang, updated in 2009
What Is PHP?