note 20672 rejected from function.fgets by torben
| From: | torben@php.net | Date: | Thu, 11 Apr 2002 23:18:19 +0000 |
| Subject: | note 20672 rejected from function.fgets by torben | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-29138@lists.php.net to get a copy of this message | ||
Is there a PHP function to read a file descriptor (in
my case a socket), and return when there is a *short* read (not EOF), the way read(2) does?
I'd like to write a network application, but I have no way of retrieving a partial line without
hanging.