go to your internet services manager... right-click on the appropriate website (default?), choose properties. now click on the configuration button, and edit .html to be run by "C:/PHP/php.exe" or whereever you have put it..
that should do the trick, but why cant it be called .php? ----- Original Message ----- From: "Scott De Leeuw" <[EMAIL PROTECTED]> To: "Nuno Lopes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 07, 2003 4:02 PM Subject: Re: [PHP-INST] Windows install that is bugging me... > Really, it's that easy? I will have to try it when I get home... > > Here is a good example, this is my site... > > http://12.208.217.144/welcome.php (strict php file) > > http://12.208.217.144/body.htm (embedded php) > > Notice that the strict php file works, however the htm file with > php embedded in to it does not... From the book I was reading I > understood it could be embedded like javascript is... > > I will try changing that setting when I get home.... > > --- Nuno Lopes <[EMAIL PROTECTED]> wrote: > > The problem is that .htm/.html files aren't being parsed. > > Simply open the configuration dialog of IIS (in control panel) > > and then go > > to 'Home directory'. Click in 'configuration' button and click > > in 'Add' and > > then enter .html as extension and C:\php\php.exe as executable > > (or where is > > your php). > > > > Nuno Lopes > > > > > > ----- Original Message ----- > > From: "Scott De Leeuw" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Tuesday, January 07, 2003 4:14 AM > > Subject: [PHP-INST] Windows install that is bugging me... > > > > > > > Here are the system specifics.. > > > Windows 2000 server SP3 > > > PHP 4.30 > > > IIS 4 I believe, whatever comes with W2k Server > > > > > > I've installed PHP and set it up as per the instructions... > > Any > > > file with a .php or .phtml extension works, however when I > > embed > > > PHP code in to an HTML it either gives a blank page or simply > > > prints all the text... I am using the standard "<?php" tag... > > I > > > have been messing around with this for a week now and am at a > > > loss... any ideas? > > > > > > > > > ===== > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php