2 Before we configure PHP to work with IIS. The machine must have prerequisite like IIS with all the features installed and running including ISAPI Filter.
9 – In the Add Script Map window, add *.php in the Request path, click the button next to Executable and select php5isapi.dll file from php installation folder (i.e. D:\php, if you have installed php on D drive), add a name like php in Name field and click OK.
12 – Add *.php in the Filter name and select php5isapi.dll from the php installation folder by clicking on the button next to Executable field.
16 – Now create a test.php file with this code and save this test.php file inside C:\inetpub\wwwroot