Once upon a time, I used to be able to include PHP code in my HTML files. However, this no longer seems to be working for me.
Let's say I have this file, phpinfo.htm
I have this line in my .htaccess file:
When I request the file from a browser (Firefox or IE), I get back the correct Content-Type header (text/html); however, instead of executing the PHP code, the server is just returning the contents of the file.
Is there anything else I need to do to get this to work?
Let's say I have this file, phpinfo.htm
Code:
<?php
echo phpinfo ();
?>
I have this line in my .htaccess file:
Code:
AddHandler application/x-httpd-php5 .htm
When I request the file from a browser (Firefox or IE), I get back the correct Content-Type header (text/html); however, instead of executing the PHP code, the server is just returning the contents of the file.
Is there anything else I need to do to get this to work?