note 20119 added to function.fsockopen

From: Date: Fri, 22 Mar 2002 22:18:55 +0000
Subject: note 20119 added to function.fsockopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-28100@lists.php.net to get a copy of this message
The timeout on fsockopen() is for actually establishing the connection. I've used it several times in test situations where I would deliberatly attempt to open the wrong port. For example; $conn = fsockopen("xxx.xxx.xxx.xxx",729,$errno, $errstr, 3); The port should be 709, but for the sake of testing to be sure that the timeout works, I changed to 729 and lowered the timeout to 3 seconds, which worked exactly as it should. This, however will not have an effect on slow transfer...as the connection has already been established. -- http://www.php.net/manual/en/function.fsockopen.php http://master.php.net/manage/user-notes.php?action=edit+20119 http://master.php.net/manage/user-notes.php?action=delete+20119 http://master.php.net/manage/user-notes.php?action=reject+20119

« previous php.notes (#28100) next »