note 18695 added to function.fgets

From: Date: Thu, 31 Jan 2002 19:32:04 +0000
Subject: note 18695 added to function.fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-26102@lists.php.net to get a copy of this message
Note that if you want to read one character at a time from a file, or a socket, or whatever, you should be using the binary safe fread() like so: fread($fp, 1) function, and NOT using this function as: fgets($fp, 2) as stated above. -- http://www.php.net/manual/en/function.fgets.php http://master.php.net/manage/user-notes.php?action=edit+18695 http://master.php.net/manage/user-notes.php?action=delete+18695 http://master.php.net/manage/user-notes.php?action=reject+18695

« previous php.notes (#26102) next »