Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS5 installation problems

Status
Not open for further replies.

GatorBait

ISP
Joined
Jun 15, 2002
Messages
1
Location
US
I installed PHP on a Windows 2K server with IIS using ISAPI. I can run a straight PHP script like test.php, but it does not run a simple embedded PHP script in html code (test.html).

Any ideas where I messed up?
 
You need to configure IIS to send HTML files through PHP as well, though this will decrease your overall site speed a little. What many people do is use a different file extension for pages which are primarily HTML but have php code too (i.e. ".phtml"). I personally don't see a reason for this. If your document has php code in it, just give it a ".php" extension.

As far as the actual configuration, I know NOTHING about IIS. There are instructions for installing PHP with IIS in the "install.txt" file included with the PHP binaries. I think it's some registry settings for ".php" files. You could just make a new registry entry in that case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top