Running PHP on HTML Pages
Normally, if you want to run PHP scripts on a web page you will give that page a .php file extension. Otherwise, the PHP script will not be parsed (or executed). However, if the page already exists with a .htm or .html file extension, it may not be convenient or desirable to change the extension.
Fortunately, there is a simple alternative to changing the file extension. You can instead add a simple instruction to a .htaccess file, as this post demonstrates.


