How Do I Parse HTML Pages As PHP?

You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file:

AddHandler application/x-httpd-php5 .php .htm .html 

The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below:

AddHandler application/x-httpd-php4 .php .htm .html 

It's only fair to share...Tweet about this on TwitterShare on Google+Share on FacebookShare on LinkedInEmail this to someone
Twitter Auto Publish Powered By : XYZScripts.com