[PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Brian Dunning
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

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Torsten Rosenberger
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

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Marek Kilimajer
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: