PHP example - How to force the execution of PHP scripts in HTML files?
PHP - How to force the execution of PHP scripts in HTML files?
To do this, you just need to modify .htaccess .
You need to put the following line:
AddType application/x-httpd-php .html .htm
and then you don't need to rename your php files to *.php anymore.