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 Quote 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. Quote 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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.