0

I have a PHP page on my site that (almost) continuously loops and sleep()s. While this page is looping and sleep()ing I cannot load another page from my site until the looping page has finished and returned a result for me.

Is there a way to get around this? Is it my server or my web browser, client or server?

Any clue as to how to request and load another page a page before the first page a has loaded is greatly appreciated. Thanks.

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by avario
0

Solved. I was using sessions in both pages, server only lets you use sessions in one page at a time.

I used session_write_close() to close the session once I was finished with it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.