warewolfe Posted October 8, 2006 Share Posted October 8, 2006 Due to a series of hardware failures I've recently had to do a full reinstall of my system (Win Xp) and took the chance to upgrade to the latest stable versions of Apache2.2, PHP5, and Mysql4.1. After installation and testing I'm getting the strangest behaviour when I check out any local page with a php extension. Sympton 1) Treats any attempt to open a local php page as a "file download" (works ok for online pages) Sympton 2) If I go to any other page with javascript it comes up with a "information bar" saying that it's blocked some content, if I allow the content I can then use the browser to look at local php pages. But it won't use include files. This behaviour is not replicated when I check out the same pages using FireFox. Everything works fine in FF. Any help or hints would be appreciated.WW Quote Link to comment https://forums.phpfreaks.com/topic/23324-ie-rendering-of-php-pages/ Share on other sites More sharing options...
wildteen88 Posted October 8, 2006 Share Posted October 8, 2006 For symtopm 2 it sounds like you are browsing the file via Windows Explorer (double clicking the file to view it in IE) rather than going to http://localhost/ to view the file. This is the default behaviour of IE6 SP2 when you view html files with javascript when you view them locally.For your first symtom it appears you have not configured Apache correctly. Make sure you have added PHP as an Apache Module or as CGI and that you restarted the Apache server when you have made any changes to any configuration files (httpd.conf, php.ini).NOTE: Currently PHP is not compatible with Apache2.2.x, unless you have PHP5.2 or are using third party dll files. I'd suggest you downgrade Apache to Apache2.0.x instead. Quote Link to comment https://forums.phpfreaks.com/topic/23324-ie-rendering-of-php-pages/#findComment-105815 Share on other sites More sharing options...
warewolfe Posted October 8, 2006 Author Share Posted October 8, 2006 Thanks for the reply, Found the answer myself but you kinda right for symptom two. For others who have similar problems (I found a couple of similar complaints when I googled the symptoms) The problem was how I was calling the local php generated page. I was calling it from C:\Apache2.2\htdocs\MyWebDir\index.php instead of http:\\localhost\MyWebDir\index.php and so IE treated the page as an intranet generated file rather than a local file. Once I had changed that everything was fixed. Quote Link to comment https://forums.phpfreaks.com/topic/23324-ie-rendering-of-php-pages/#findComment-106023 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.