On a site I did years ago I’ve got this in the .htaccess file:
AddType application/x-httpd-php .php .html
And all the files with php in have a .html file extension.
I’ve just tried using fopen(), in some of the php in one of the .html files, and am getting permission errors. Apparently, it’s been suggested to me, it’s probably because of “AddType application/x-httpd-php .php .html”.
Is there another way to do what this:
AddType application/x-httpd-php .php .html
… does (allow php to execute in files with .html extension) without me changing all the file names and what might get around the fopen() permission problems?
Thanks.