Execute PHP code in .html file
Only way to execute PHP code on a .html page is to modify your .htaccess file. This file may be hidden, so depending upon your FTP program you may have to modify some settings to see it. Then you just need to add this line for .html file [sourcecode language="plain"]AddType application/x-httpd-php .html[/sourcecode] Or for .htm file [sourcecode language="plain"]AddType application/x-httpd-php .htm[/sourcecode] If you only plan on including the PHP on one page, it is better to setup this way: [sourcecode language="plain"] <Files yourpage.html> AddType application/x-httpd-php .html </Files> [/sourcecode] This code will only make the PHP executable on the yourpage.html file, and not on all of your html pages. [JWD-Web-Development]