Parse PHP within HTML file

To make the server parse php within an html file, add this to the .htaccess file

AddType application/x-httpd-php .php .htm .html

or

AddType application/x-httpd-php5 .html

Check with your host for correct format.

Leave a Comment