Parsing PHP in HTML

Well this took a big chunk of time last night so I thought I’d start a post here with the info I collect. Here’s the .htaccess text for parsing PHP in HTML files on various hosts.

Network Solutions

AddType application/x-httpd-php .html
AddHandler Extension_Type .html .htm .php3 .php4 .php5
Action Extension_Type /cgi-bin/php.dat


AddHandler application/x-httpd-php5 .htm .html

I’ll add more as I run across them.


  1. Thanks. I’m developing a site on Network Solutions and their tools and docs are awful. You saved me a lot of pain.

Leave a Reply

Your email address will not be published. Required fields are marked *