note 53813 added to function.fread
| From: | Thomas at osu1 dot php dot net | Date: | Tue, 14 Jun 2005 08:02:45 +0000 |
| Subject: | note 53813 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90395@lists.php.net to get a copy of this message | ||
Please that, if you're using fread to read from a http connection that it is *not* enough to
call it once with a really large value for "length". The call may return with less data
than available in the web. This even applies to downloading normal-size web pages from other
servers.
You'll need to put "fread" into a loop and check "feof" like other samples
on this page suggest.
Thomas
------------------------------------------------------
http://www.easy2sync.com/en/produkte/e2s4o.php
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53813
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53813&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53813&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53813&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53813&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53813&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53813&report=yes
Search -- http://master.php.net/manage/user-notes.php