How do i parse php in html files?

In order to parse .html or .htm files as php, create a file called .htaccess (unless you already have one, then just edit the existing file) in your /public_html directory and add the following line:

AddHandler application/x-httpd-php5 .html .htm
Was this answer helpful? 3 Users Found This Useful (113 Votes)