zuze Posted February 28, 2008 Share Posted February 28, 2008 Hi! Suddenly my php site started displaying code instead of web pages. By entering path to files I can open int he browser all configuration files and everything that has a .php at the end. I added .html page, and it displays as supposed to. This is critical - I hope someones can advise me on where the problem is!!! Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/ Share on other sites More sharing options...
peranha Posted February 28, 2008 Share Posted February 28, 2008 Are opening the pages with <? If so, open them with <?php Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-479133 Share on other sites More sharing options...
zuze Posted February 28, 2008 Author Share Posted February 28, 2008 They are opening with <?php it as to be something in the server configuration, because yesterday everything was ok till mid afternoon. Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-479140 Share on other sites More sharing options...
PFMaBiSmAd Posted February 28, 2008 Share Posted February 28, 2008 This is an issue you need to talk with your web hosting company about. The web server is no longer parsing .php files through the php language engine. A likely possibility is that you can select to enable or disable php or which php version gets used in your control panel or a .htaccess file and php is now disabled due to a setting change or perhaps the host has removed support for php4 and you were using php4. Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-479267 Share on other sites More sharing options...
zuze Posted February 28, 2008 Author Share Posted February 28, 2008 Thank you for your reply. IT person is trying to figure this out, no luck so far. Apache is on Linux. Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-479295 Share on other sites More sharing options...
zuze Posted February 28, 2008 Author Share Posted February 28, 2008 It looks that the PHP is not functional, not running. Anyone has any suggestions? Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-479438 Share on other sites More sharing options...
syngod Posted March 4, 2008 Share Posted March 4, 2008 re-install or make sure all of you config is correct. you may have forgot to add php to the apache config Quote Link to comment https://forums.phpfreaks.com/topic/93518-code-is-displaying-in-web-browser-instead-of-page/#findComment-482483 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.