Forum Moderators: coopster

Message Too Old, No Replies

parsing php in html files using xampp

         

dougmcc1

11:58 pm on Aug 26, 2007 (gmt 0)

10+ Year Member



How do you run php in .html files on xampp? Adding AddType application/x-httpd-php .php .html to the httpd.conf file causes apache to quit.

eelixduppy

3:52 am on Aug 27, 2007 (gmt 0)



>> causes apache to quit.

It shouldn't. Are you sure you added it in the correct place and did so without spelling errors? Also, make sure you have restarted your server after making the changes.

dougmcc1

5:13 am on Aug 27, 2007 (gmt 0)

10+ Year Member



Thanks for the reply.

I added it almost at the very beginning after the comments. I didnt know there was a specific place for it. Where should I put it? Just to be clear I didnt find this line at all in the original httpd.conf file:
AddType application/x-httpd-php

So I'm adding this full line (not just the .html extemsion):
AddType application/x-httpd-php .php .html

Where should I put this line? Should I add a <IfModule mod_php5.c> module since one doesnt exist already?

Thanks again.

dougmcc1

5:57 pm on Aug 27, 2007 (gmt 0)

10+ Year Member



Does anyone have any ideas?

Thanks.