Hi,

I have a script in which there is a call to open a remote file:

fopen ("http://www.somewhere.com/file.php?foo=bar";, "r");

Sometimes if www.somewhere.com is down, it will stuck at the function
for very long a time. I hope to setup a timeout limit for this function
(just
this), so that it won't stay very long to wait for a result, but just quit
if the
call take a time longer than timeout limit, and then go on for next steps.

Thanks in advance!

Alex Shi


--
==================================================
Cell Phone Batteries at 30-50%+ off retail prices!
http://www.pocellular.com
==================================================
TrafficBuilder Network:
http://www.bestadv.net/index.cfm?ref=7029
==================================================


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to