I'm using fopen to check to see if a file exists on a remote web server. If the remote server is down then fopen simply stalls out. Is there any way to work around this? I'm running php v4.2.1. Any help would be greatly appreciated.
What do you mean exactly stalls out?
Why dont use you something like set_time_limit()
Also use fsockopen rather than fopen();
On the [man]fopen[/man] page there's mention of a function called [man]stream_set_timeout[/man]. Maybe that's relevant.
Hi never use fopen on a remote site...because if this on is secured (php.ini allow_url_fopen = off) it won't work
try with sockets
I was able to do what I wanted with fsockopen - thanks.