I've run into this issue a few times, but it hasn't been a show-stopper until my current project.
Basically, I'm using:
$file = fopen('http://www.somesite.com/someimage.jpg', 'r');
...and then saving the file locally, and outputting it. Nothing fancy - no image manipulation at all - just grabbing the file.
This PHP script only runs in certain situations - once a minute, maybe - with lots of other straight file (no PHP) requests coming in on this very busy server.
The problem is, the entire apache server stops while the line of code above runs. Everything stops locally - apache completely goes into a coma - until the remote server returns the file in the fopen call.
Why does this happen? How can I work around this? I need apache to keep on ticking during pending fopen calls to remote servers.
I've searched the web high and low, and can't even find any mention of this issue, much less a solution.
Any help would be greatly appreciated!