Using IIS to run a PHP program
1. Download PHP First, Here I am downloading php5.2.14 (if it is the other high version, you may not find Php5isapi.dll, its related configuration method for the moment, regardless of whether it is recommended to download ZIP compression package, do not need to install on it, and when downloading, please pay attention to choose VC9 Package instead of VC6 (this is Apache use). For example, I unpack to d:\ Php-5.2.14-win32.
2. Find Php.ini-dist modified to php.ini, and then open the file:
Find register_globals = Off
Modified to Register_globals = ON,
Find Extension_dir = "./"
Modify the path to the extension DLL in your zip package, for example, my d:\ Php-5.2.14-win32\ext is modified to Extension_dir = "D:\ php-5.2.14-win32\ext"
Add an extension to
; Extension=php_curl.dll
; Extension=php_dbase.dll
; Extension=php_gd2.dll
; Extension=php_ldap.dll
; Extension=php_mysql.dll
Front semicolon ";" Removed to enable these common extensions.
3. Create a Web site in IIS, such as: Phptest, by default add an application pool to the application pool. The NETFramework version is modified to "no managed code" and the managed piping mode is modified to "classic". Then add the application map to the Web site, add a script map, request the path to "*.php", and the executable file is "D:\php-5.2.14-Win32\php5isapi.dll" (depending on the PHP directory).
So far you can run your PHP site. For example, in the site root directory to create a file named "index.php", add "" After the run can appear the following interface: