How Do I Parse HTML Pages As PHP?
You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file:
AddHandler application/x-httpd-php5 .php .htm .htmlÂ
The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below:
AddHandler application/x-httpd-php4 .php .htm .htmlÂ