note 37549 added to function.socket-read

From: Date: Wed, 19 Nov 2003 15:34:51 +0000
Subject: note 37549 added to function.socket-read
Groups: php.notes 
Request: Send a blank email to php-notes+get-60622@lists.php.net to get a copy of this message
Be carefull, with PHP 4.3.x on Windows, the socket_read function does not works. (bug post on 12/26/2002...) But you can use this tips : if you have this code : $buffer=socket_read($MsgSock,1024,PHP_BINARY_READ); replace it by : $res=socket_recv($MsgSock,$buffer,1024,0); When $res == 0 the connection is closed, and when $res < 0 there is an error. ---- Manual Page -- http://www.php.net/manual/en/function.socket-read.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37549 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37549&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37549&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60622) next »