file_get_contents timeout

floris

Verified User
Joined
Oct 23, 2005
Messages
94
I'm desperate here. I wrote a DA plugin which uses file_get_contents to read in a remote file (via sockets). On some servers this function doesn't work at all and timeouts after about a minute. On some other servers there's no problem.

I tried to write my own file_get_contents() using fopen(), and fread() and it shows exactly the same behaviour.

Anyone can shed some light on why this happens and what can be done about it?
 
What are the PHP versions of working servers compared to the non-working servers?

And the non-working servers have been compiled with sockets? It's the default, but there's nothing stopping an administrator for changing it.
 
Hi. Thanks for the reply. The problem was the firewall (pf) which had ip-spoofing enabled: the plugin couldn't open a page on the local machine through an external interface.

Floris
 
Back
Top