php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #20878 IIS Server setup to run php code imbeded in html files
Submitted: 2002-12-07 10:17 UTC Modified: 2003-01-06 13:04 UTC
From: sparkie at attbi dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.2.3 OS: Windows 200
Private report: No CVE-ID: None
 [2002-12-07 10:17 UTC] sparkie at attbi dot com
After installing php-4.2.3-installer.exe per install.txt and configuring IIS as recommended in various help files, I found that my browser would run .php files ok but not .html files with inbedded php code. I wasted a lot of time trying to find the answer which is not mentioned anywhere in the install.txt, (or any other help of FAQ for that matter);
 The way install.txt describes setting up the IIS server works very well for getting the browser to work with .php files but does nothing at all for .html files that have imbedded php code. In the Internet Services Manager>Default Web Site>Properties page>Home Directory>configuration the following must be added to run php code imbedded in an HTML file:in addition to adding .php and the executable path,it is necessary to also add .html and .htm extensions + the executable path in order to run imbeded php code. Perhaps this solution should have been plain to see - but not!
Thanks for your consideration,

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-06 12:10 UTC] fletchsod at juno dot com
Um...  If you're saying that the php code should work in the *.html and *.htm files.  I hate to tell you this.  This does not work that way.  PHP script do not work in any files other than *.php and *.inc (if with include file function).  It have been this way from day one.
 [2003-01-06 13:04 UTC] philip@php.net
fletchsod's comments are misleading and wrong.  This report is being marked bogus as it's not PHP's job to document how to configure web servers for every file extension.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 15:01:29 2024 UTC