Is there any way to specify a timeout on a file_get_contents()? I'm
trying to verify a URL but I don't want to spend more than a few
seconds on it.
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Am Di, den 15.02.2005 schrieb Brian Dunning um 16:48:
Is there any way to specify a timeout on a file_get_contents()? I'm
trying to verify a URL but I don't want to spend more than a few
seconds on it.
http://de.php.net/manual/de/function.fsockopen.php
not so easy a file_get_contents but
Brian Dunning wrote:
Is there any way to specify a timeout on a file_get_contents()? I'm
trying to verify a URL but I don't want to spend more than a few seconds
on it.
- Brian
ini_set('default_socket_timeout', $seconds);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
3 matches
Mail list logo