lionclaw
Aug 5th 2007, 2:35 pm
I have just installed Apache Server 2.0.52 and PHP (5.2.3) on my home computer (Windows XP) so that I can learn PHP and practice using other web technologies more easily. The installations seemed to go alright, as I followed directions as closely as possible. For the most part they are working adequately EXCEPT for parsing PHP in HTML files. As a newbie I am probably making some obvious mistake, but no matter how much I play around with the configurations I cannot get the PHP to work in the html files. I even adding a .htaccess file with:
Remove handler .html .htm
Add type application/x-http-php .php .htm .html
as someone suggested, but this too didn't help.
The lines I played around with the most in the httpd.conf file are:
AddType application/x-httpd-php .php .htm .html
AddType text/html .shtml .html .htm .php
AddHandler server-parsed .shtml .html .htm .php
AddOutputFilter INCLUDES .shtml
Can someone please set me straight?
Thank you
Remove handler .html .htm
Add type application/x-http-php .php .htm .html
as someone suggested, but this too didn't help.
The lines I played around with the most in the httpd.conf file are:
AddType application/x-httpd-php .php .htm .html
AddType text/html .shtml .html .htm .php
AddHandler server-parsed .shtml .html .htm .php
AddOutputFilter INCLUDES .shtml
Can someone please set me straight?
Thank you