note 37549 deleted from function.socket-read by betz

From: Date: Fri, 28 Oct 2005 17:05:23 +0000
Subject: note 37549 deleted from function.socket-read by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97749@lists.php.net to get a copy of this message
Note Submitter: bool at boolsite dot net ---- 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.

« previous php.notes (#97749) next »