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.

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.