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

Downloading and Installing PHP 5.0.4 for Windows

This section provides a tutorial example on how to download and install the PHP engine 5.0.4 on a Windows system.

1. Go to http://www.php.net, and download PHP 5.0.4 binary for Windows. You will get a file called php-5.0.4-Win32.zip of 7488 KB.

2. Unzip php-5.0.4-Win32.zip to \php directory.

3. Open a command window, and try the following commands:

>\php\php -v
PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies

>\php\php-cgi -v
PHP 5.0.4 (cgi-fcgi) (built: Mar 31 2005 02:45:43)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies

Cool, both Command Line Interface (CLI) and Common Gateway Interface (CGI) of PHP are working!

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
Downloading and Installing PHP 5.0.4 for Windows