fwrite() timeout

From: Date: Sun, 05 Nov 2006 23:17:00 +0000
Subject: fwrite() timeout
Groups: php.general 
Request: Send a blank email to php-general+get-244261@lists.php.net to get a copy of this message
Hi, I am using the fsockopen(), fwrite() and fread() functions to get a web page from a remote server. The remote server is currently down and I see the code hangs on the fwrite() call. Is there a way how to set a timeout for the fwrite() remote call? I have found the stream_set_timeout(), but it seems not to be effective on the fwrite(), only on fread(). Thanks, Martin

« previous php.general (#244261) next »