Can't get PHP to parse in .html files...

Can't get PHP to parse in .html files...

Posted by: Theovis
Posted on: 2009-08-15 11:48:00

I've been trying to customize the .htaccess file on my Dreamhost shared server to parse PHP in .html files. I've tried the following commands with no luck...

AddType application/x-httpd-php .html
ForceType application/x-httpd-php .html
AddHandler application/x-httpd-php .html

Re: Can't get PHP to parse in .html files...

Posted by: Atropos7
Posted on: 2009-08-15 12:14:00

In reply to:

I've been trying to customize the .htaccess file on my Dreamhost shared server to parse PHP in .html files. I've tried the following commands with no luck...


AddHandler php5-cgi .html

Keep in mind this will unnecessarily increase resource usage when processing static HTML files.

Customer since 2000 cool openvein.org

Tags: html filesdreamhosthtaccess file