note 20672 added to function.fgets

From: Date: Thu, 11 Apr 2002 23:17:06 +0000
Subject: note 20672 added to function.fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-29136@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. -- http://www.php.net/manual/en/function.fgets.php http://master.php.net/manage/user-notes.php?action=edit+20672 http://master.php.net/manage/user-notes.php?action=delete+20672 http://master.php.net/manage/user-notes.php?action=reject+20672

« previous php.notes (#29136) next »