Forum Moderators: phranque
I need HTML to parse PHP
But I have not seen such a HTTPD conf before
How will you modify it to allow HTML to parse PHP
.PHP . HTML
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
(I use php5)
Thanks
<edit>
Sorry, typo in my header, can't fix it
indeed it should read HTTPD.conf :)
</edit>
Do I have to change .html to .php? [webmasterworld.com]
HERE IS THE WORKING WAY :(PHP5)
if yours reads like this
<IfModule mod_php5.c>
AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
</IfModule>
1)Add .htm .html to:
php .php .php5 .php4 .php3 .phtml (it's located about 2/3 down the file)
2)Rem (a few lines below) .htm .html
from: AddHandler server-parsed .shtml .htm .html
Reason why:
htm and html being able to be parsed for SSI
if left will be conflicting if parsed as PHP.
Those final explanations were offered by my server maintenance team.