1. First to the PHP website download Php-5.3.6-nts-win32-vc9-x86.zip Extract to the computer hard drive. Unzip the file to a folder php5.3.6
: http://www.php.net/downloads.php
2. Place the extracted php5.3.6 folder under the E:\Program Files folder
3. The "php.ini-development" modification under the PHP directory is named: php.ini
Found in php.ini (not set by yourself below)
**********************************************************
Locate the following statements, and ";" the preceding statements Remove:
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_sockets.dll
Find the following two sentences:
; On Windows:
; extension_dir = "ext"
Replace the previous sentence (note the preceding semicolon):
Extension_dir = "c \ Php\ext"
***********************************************************
4. Right-click Computer on the desktop, select Properties, select Advanced System settings, and click Environment Variables.
Find "path" in the system variable and double-click to add it in the value of the variable: E:\Program files\php5.3.6;
5. Start "Run", enter cmd, command port, enter php–h, view PHP Help
input Php–v , view PHP Version Information
6. Create a simple PHP program
<?php
Print "Hello, world!"; or echo "Hello, world!";
?>
Open the CMD panel and enter the directory of the hello.php file
Enter "PHP hello.php",
Observe the results of the operation as follows:
hello,world!
PHP system environment variable configuration complete
Configuring the Windows System PHP system environment variables