Re: Re: Perplexed - wont parse <?php ?> tags in html
| From: | Armando | Date: | Sat, 09 Jul 2005 21:38:25 +0000 |
| Subject: | Re: Re: Perplexed - wont parse <?php ?> tags in html | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-26196@lists.php.net to get a copy of this message | ||
Is this running under Apache? If you're loading it as a module from Apache then you need to make sure that your httpd.conf file is set to allow the PHP engine to parse specific files. In the Apache conf file I believe the line is:
AddType application/x-httpd-php
You can add file types by just leaving a space and then adding the ones you want, for example:
AddType application/x-httpd-php .php .html .htm
Cheers.
Armando
Mark Rees wrote:
Lots of possible solutions on this: http://www.webmasterworld.com/forum88/4806.htm And another is... change the extensions on your html files ""Fred"" <bloggsfred00@hotmail.com> wrote in message news:38.05.00424.ED8B0C24@pb1.pair.com...PHP5 - Apache2 - XPSP2 New to PHP. I have done everything I think I need to do to get PHP5 working. I can link to and execute file.php scripts just fine, but scripts imbedded with <?php ... ?> in html files are not parsed/executed. I must have missed something really simple - but I can't find it. Any ideas? TIA Fred.