Re: #20878 [Com]: IIS Server setup to run php code imbeded in html files

From: Date: Mon, 06 Jan 2003 20:07:20 +0000
Subject: Re: #20878 [Com]: IIS Server setup to run php code imbeded in html files
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350723@lists.php.net to get a copy of this message
And even IF you would go as far as to have .htm and .html files parsed as PHP-files, you should add this to APACHE, and NOT IE!! Since the code in IE gets run locally on your computer, not locally on the server, as it would in case of apache. - Tularis fletchsod@juno.com wrote:
 ID:               20878
 Comment by:       fletchsod@juno.com
 Reported By:      sparkie@attbi.com
 Status:           Open
 Bug Type:         Documentation problem
Operating System: Windows 200
 PHP Version:      4.2.3
New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-12-07 10:17:27] sparkie@attbi.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, ------------------------------------------------------------------------


« previous php.doc (#969350723) next »