RE: [PHP] .html extension PHP page be interpret
| From: | Jay Blanchard | Date: | Tue, 18 Nov 2003 12:45:52 +0000 |
| Subject: | RE: [PHP] .html extension PHP page be interpret | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-170087@lists.php.net to get a copy of this message | ||
[snip]
I using WinXP + Apache 1.3.24 + PHP 4.3.3
My apache default will interpret .php extension file. (e.g.
index.php)
If I have a PHP page, but I want to use .html file extension (e.g.
index.html).
what I need to set to make those html extension page be interpret by
server.
I want those .html extension PHP page be interpret.
[/snip]
Answered once in the last 24 hours....add the following line to your
httpd.conf and then restart Apache
AddType application/x-httpd-php .php .html