note 53826 added to function.fread
| From: | admin at rainer-schuetze dot de | Date: | Tue, 14 Jun 2005 13:25:23 +0000 |
| Subject: | note 53826 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90414@lists.php.net to get a copy of this message | ||
According: dvsoftware at gmail dot com
Hi all, the sript by dvsoftware is quit handy. But I had a lot of problems to read the dam.. file.
Every file. I was using a Windows Platform, maybe that was the mistake.
Annyway, I had to read the file in one session:
<?
:
:
while(!feof($fp))
{
//print (fread($fp,1024*8)); //4096 //1024*8
print fread($fp,$size);
flush();
}
fclose($fp);
:
:
?>
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53826
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53826&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53826&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53826&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53826&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53826&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53826&report=yes
Search -- http://master.php.net/manage/user-notes.php