note 9135 added to Socket functions
| From: | mmlynarcik at charmed dot sk | Date: | Wed, 18 Oct 2000 10:25:57 +0000 |
| Subject: | note 9135 added to Socket functions | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6658@lists.php.net to get a copy of this message | ||
In example scripts is used function read(). Here is syntax and some docs ...
int read( int sock_des, string &buf, int lenght )
Function read() reads from socket( sock_des) created by accept_connect function into buffer(buf)
number of bytes set by lenght argument. Otherwise you can use \n, \t or \0 to end reading. Function
returns number of bytes that have been red.
http://www.php.net/manual/ref.sockets.php