Parsing PHP in HTML

If you’re on an Apache Server, with Mod_rewrite installed, you can have the server parse PHP code in .html files by adding this code to your .htaccess file:

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

Comments are closed.