Friday, 16 October 2015

How to force HTML to run as PHP

We can use Apache Handlers to force HTML pages to execute as PHP scripts.

So to do this. add the below line to .htaccess file:

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


1 comment: