Web Hosting Plus Logo



Web Hosting How-To Articles, Help and Information at Web Hosting Plus

Can PHP5/PHP4 code be put in files with the .html/htm file extension?

Back to Help Main Page

It is possible to run php code in .html files by adding the following to a .htaccess file.

AddHandler cgi-script .html
SetEnv PHP_EXTENSION .html


This is in reply to:

Can PHP5/PHP4 code be put in files with the .html/htm file extension?


Web Hosting Plus Help Main Page