Download and manually install Php Php.Net Downloads
I downloaded the PHP 5.2.12 Non-thread-safe zip package
Unzip to C:\Php\Php5
Copy the C:\Php\Php5\php.ini-recommended to php.ini (same in same folder)
Edit the php.ini file:
Note if the server is a development machine (NOT LIVE) turn on Error Display
If IIS is not installed, install it using
Turn Windows features on, in the Programs Control Panel

Click the 'Turn Windows features on or off
Intall the IIS Management Console and CGI

Now, start the IIS Management Console; just open up the start menu, enter inetmgr and hit Enter.
Navigate to the Sites/Default Web Site/Handler Mappings node and double-click on the "Handler Mappings" entry.

As a result of this, the Actions panel on the right hand side changes. You now see an option called Add Module Mapping.
Clicking on it opens up a dialog which you fill out as you can see in the following figure (you may need to adapt the path used to your local system).

If you do not see the FastCgiModule entry, you probably forgot to check the CGI node when installing IIS.
Otherwise, close the Add Module Mapping dialog by clicking on OK.
You need to confirm that you want to create a FastCGI application; click Yes.