From the Microsoft website:
To install PHP
1.
Download the zip file from [ External links are visible to forum administrators only ]. php .net / downloads.php, which contains the ISAPI filter for IIS.
2.
Extract the contents of the zip file to C:\php.
3.
Go to C:\php.
4.
Copy the php.ini-dist file to your system root (the directory where you installed Windows), rename it to php.ini, and edit it to fit your needs.
5.
Start the Microsoft Management Console or the Internet Services Manager, located in Control Panel.
6.
Click your Web server, and select Properties.
7.
If you want to perform HTTP authentication using PHP, add a new ISAPI filter under ISAPI Filters. Use PHP as the filter name, and supply a path to php4isapi.dll.
8.
Under Home Directory, click Configuration. Add a new entry to Application Mappings. Enter the path to php4isapi.dll as the Executable, enter .php as the extension, leave Method exclusions blank, and select the Script engine checkbox.
9.
Stop IIS completely:
net stop iisadmin /y
10.
Start IIS again:
net start w3svc
You can also perform this installation via command line using the ADSI object model for IIS.
To test PHP
• Create a file called test.php with the following code to check for PHP support:
<? phpinfo(); ?>
The file needs to be located in the document root path, which should be set up by default to C:\ inetpub\ wwroot\ lamp.
Hope this helps-