note 23545 added to function.fgets
| From: | php-general at lists dot php dot net | Date: | Sun, 21 Jul 2002 22:00:41 +0000 |
| Subject: | note 23545 added to function.fgets | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-33369@lists.php.net to get a copy of this message | ||
In response to ylringwood@mailcity.com: you're right but that's not the problem.
Lately I've been dealing with remote files with a few long lines in certain places, so to
guarantee that I don't get a portion of a line, I went overkill and used fgets($file, 1048576);
Little did I realize how seriously this was killing my performance. I toned it down to 65536 and it
became blazingly fast. There is obviously some unnecessary processing going on. Beware.
--
http://www.php.net/manual/en/function.fgets.php
http://master.php.net/manage/user-notes.php?action=edit+23545
http://master.php.net/manage/user-notes.php?action=delete+23545
http://master.php.net/manage/user-notes.php?action=reject+23545