I can\'t use PHP in my HTML pages. For example, index.html
. I\'ve tried using both:
contents ?>
and
Add this line
AddHandler application/x-httpd-php .html
to httpd.conf
file for what you want to do.
But remember, if you do this then your web server will be very slow, because it will be parsing even static code which will not contain php code.
So the better way will be to make the file extension .phtml
instead of just .html
.