flyerball10 Posted October 5, 2007 Share Posted October 5, 2007 I need to parse php with HTML pages on my site. I have access to the httpd.conf file and have added the following the .conf file: AddType application/x-httpd-php .php .html I restarted Apache and tested the following HTML: <html> <head></head> <body> <h1> <?php echo "I LOVE PHP!"; ?> </h1> </body> </html> Nothing....No results...No parsing!! Any thoughts?? Anyone? PLEASE HELP Link to comment https://forums.phpfreaks.com/topic/72021-parsing-php-in-html-files/ Share on other sites More sharing options...
wildteen88 Posted October 5, 2007 Share Posted October 5, 2007 That should work. You have modified the correct line. Make sure you have edited the correct httpd.conf file. Link to comment https://forums.phpfreaks.com/topic/72021-parsing-php-in-html-files/#findComment-362903 Share on other sites More sharing options...
flyerball10 Posted October 5, 2007 Author Share Posted October 5, 2007 Thats what I'm thinking is wrong. Is there a way to find out where the correct httpd.conf is being loaded from? Link to comment https://forums.phpfreaks.com/topic/72021-parsing-php-in-html-files/#findComment-362926 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.