After enabling Apache and PHP on my Mac (OSX Jaguar) I have been exited about using it as a development environment for my PHP scripts. This has been great to test code without uploading it to my web hosting service.
The problem I have is I cannot get .html files to be parsed by the PHP engine.
First, I edited the .htaccess file in my Sites folder by adding the code:
AddType application/x-httpd-php .htm .html
(This worked on my web server but not on my Mac.)
Then, I found out I had to edit /etc/httpd/httpd.conf to change the line AllowOverride None to read AllowOverride All. I did this but it didn't work. I still cannot get html files to process the php within. What do I need to do next?
The problem I have is I cannot get .html files to be parsed by the PHP engine.
First, I edited the .htaccess file in my Sites folder by adding the code:
AddType application/x-httpd-php .htm .html
(This worked on my web server but not on my Mac.)
Then, I found out I had to edit /etc/httpd/httpd.conf to change the line AllowOverride None to read AllowOverride All. I did this but it didn't work. I still cannot get html files to process the php within. What do I need to do next?