Exclusive Affiliate-Only Offer:
$9.99 Domain Names
Drive sales with one of the most aggressive domain offers out there: A domain and professional email account for only $9.99!
How to set IIS7 to parse PHP with .HTML .HTM extension in IIS7
Find more tutorials at
If you have just finished installing IIS7 and you got PHP running
fine it's time to get it running even on static pages such as HTML,so that
if you have to include PHP code in your existing HTML pages,the server will
parse as PHP anything between the tags <?php ?>.The
process is very easy,just follow these few steps.
First step .Log on as administrator,go to control
panel,Administrative Tools,Internet Infrmation Service
The IIS management window opens( see figure below) Select the
main server name on the left pane(Vista Laptop,in this case) and
double click on Handler Mapping in the center
pane( with the red arrow) .
Once you are in the Handler Mapping window (see figure
below),click on Add Script Map
The dialog box below opens. In the box Request path, enter *.html (don't
forget the star before the dot) and in
the Executable the exact path that points to the php5isapi.dll ,in the Name box,
just enter any name( see the figure below).
Once you've done it, click ok and Yes on the next dialog box(see
figure below).
That's it, you can repeat the same process for any file extension.
From now on anything in your HTML pages between the
tags <?php ?> will be recognized by IIS as PHP code .