I have been trying for hours to get my web server to parse php in a HTML file. However I could not get it to work. After several hours I finally figured out the problem. At it surprised me so I figured I would pass along in case anyone else is having similar problems. I was adding AddHandler application/x-httpd-php .html .htm .php to my .htaccess file, but to no avail I could not get the server to parse the php in the html files. it turns out that I needed to add the following line. AddHandler application/x-httpd-php5 .html .htm .php notice the php5 instead of just the php, I find it hard to believe that php version 5.0 would change the name of the php parser and not make it backwards compatible. Every page i found on the Internet on how to do this only said to include the first line and not the latter. So if you having problems getting php code to execute in a .html file, try this out. Hope this can save someone some problems.