Re: Set a timeout on file_get_contents?

From: Date: Tue, 15 Feb 2005 23:21:06 +0000
Subject: Re: Set a timeout on file_get_contents?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208791@lists.php.net to get a copy of this message
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);

« previous php.general (#208791) next »