31 May 2010

How to insert a php code into a html page?

To insert a php code in files with .html extension just add the following code to the .htaccess file from your site root:


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

No comments:

Post a Comment