Using PHP in html pages
Q. In my HTML page can I use PHP tag?
Ans. Yes, PHP tag can be use within html pages. All you’ve to try is to enter PHP with html in your apache configuration and add modules which is able to execute the php code in your html pages. Our support can assist you if you’re unable to make these changes from your end or if you’ve got a shared hosting account.
For people who have dedicated servers or VPS accounts will do that within the “AddHandler” section of httpd.conf
You just need to add following line in AddHandler :-
AddType application/x-httpd-php .html
After adding it the addhandler section should look like this :-
AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php3 AddType application/x-httpd-php .html AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .phtml AddHandler cgi-script .cgi .pl AddType text/html .shtml AddType application/x-tar .tgz AddType text/vnd.wap.wml .wml AddType image/vnd.wap.wbmp .wbmp AddType text/vnd.wap.wmlscript .wmls AddType application/vnd.wap.wmlc .wmlc AddType application/vnd.wap.wmlscriptc .wmlsc