Re: web sniffer

From: Date: Mon, 22 Mar 2010 12:16:41 +0000
Subject: Re: web sniffer
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-303083@lists.php.net to get a copy of this message
Jochen Schultz wrote:
Btw., when you use file_get_contets, is there a good way to tell the script to stop recieving the file after let's say 2 seconds - just in case the server is not reachable - to avoid using fsockopen?
http://nl.php.net/manual/en/context.http.php specifically: timeout float Read timeout in seconds, specified by a float (e.g. 10.5). By default the default_socket_timeout php.ini setting is used. used with http://nl.php.net/manual/en/function.stream-context-create.php regards, Auke van Slooten Muze

« previous php.general (#303083) next »