note 31129 added to function.fgets
| From: | de at rack1 dot php dot net | Date: | Thu, 10 Apr 2003 17:23:11 +0000 |
| Subject: | note 31129 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46455@lists.php.net to get a copy of this message | ||
Apparently, the buffer parameter is not optional after all... I kept getting a "wrong number of
arguments" error when using fgets without the buffer size, and fgets would not return any data.
After I added a buffer size of 1024 to the call, everything worked fine.
--
http://www.php.net/manual/en/function.fgets.php
http://master.php.net/manage/user-notes.php?action=edit+31129
http://master.php.net/manage/user-notes.php?action=delete+31129
http://master.php.net/manage/user-notes.php?action=reject+31129