Jump to content

Waiting on Localhost problem because of my php script


rudyten

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.