rudyten Posted February 1, 2010 Share Posted February 1, 2010 I am working on my localhost(pc) at home after I refresh my page about 6-10 straight I get stuck on "Waiting on localhost...". It just hangs there. I do not think it is apache, because if I close the browser(firefox), and then reopen my page, I am once again good for 6-10 refreshes before it gets stuck again. How would I go about figuring out this problem? I see no clues in my logs. I am just not sure where too start looking. Some advice would be very appreciated Quote Link to comment https://forums.phpfreaks.com/topic/190544-waiting-on-localhost-problem-because-of-my-php-script/ Share on other sites More sharing options...
dpacmittal Posted February 1, 2010 Share Posted February 1, 2010 Why don't you try another browser? Try chrome. Quote Link to comment https://forums.phpfreaks.com/topic/190544-waiting-on-localhost-problem-because-of-my-php-script/#findComment-1005014 Share on other sites More sharing options...
rudyten Posted February 1, 2010 Author Share Posted February 1, 2010 Tried that already. lol The problem is not the browser. If I get on Google Chrome and hit refresh on that page the same thing will happen Quote Link to comment https://forums.phpfreaks.com/topic/190544-waiting-on-localhost-problem-because-of-my-php-script/#findComment-1005022 Share on other sites More sharing options...
Zane Posted February 1, 2010 Share Posted February 1, 2010 it's obviously something in your script trying to access something. I don't know why it times out after 6-10 times, but I would install Firebug for Firefox and check the page loading stats Quote Link to comment https://forums.phpfreaks.com/topic/190544-waiting-on-localhost-problem-because-of-my-php-script/#findComment-1005024 Share on other sites More sharing options...
dpacmittal Posted February 1, 2010 Share Posted February 1, 2010 Why don't you use a ob_implicit_flush() and print something after every few lines to find out which code is causing this. For eg; ob_implicit_flush(); echo "blah blah started"; /* SOME CODE */ echo "blah blah completed"; echo "foo started"; /* SOME CODE */ echo "foo completed"; The point at where it stops would let you find out which code is causing the error. It might be infinite loop or something. Quote Link to comment https://forums.phpfreaks.com/topic/190544-waiting-on-localhost-problem-because-of-my-php-script/#findComment-1005057 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.