Friday, October 15, 2010

HTACCESS code to run PHP in HTML file

Using HTACCESS we can run the PHP code in an HTML file.

The REWRITE rule to write in HTACCESS file is shown below.

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

1 comment:

Anil Kumar said...

For CGI servers, we need to use

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