For example, echo phpinfo() returns nothing in my .html file
but index.php returns with the info
wich setting needs to be adjusted?
You need to configure Apache to look for PHP in html files.
Note this could impact performance, as each HTML file will now be checked for PHP code.
FilesMatch is better then AddType as it'll protect you from some exploits. Details about this can be seen in step 6 of the php install manual
you can not execute php code in an HTML file, the file needs to be a PHP file with an extension of .php or .php5
In order to execute PHP code inside HTML you will need to add a handler
Enter this in the
If you're running PHP as CGI: