How To Run PHP in HTML Pages

By Angsuman Chakraborty, Gaea News Network
Friday, July 28, 2006

This technique will only work if your Apache server has PHP enabled (how to test php support in apache http server) and .htaccess enabled.

In the root directory of your html files create a file named .htaccess. The file may already be present.

Open the file in your favorite editor and add the following lines:

addtype application/x-httpd-php .html
addtype application/x-httpd-php .htm

Done!

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :