note 25436 added to function.fpassthru
| From: | codeum at netscape dot net | Date: | Mon, 23 Sep 2002 23:04:33 +0000 |
| Subject: | note 25436 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37164@lists.php.net to get a copy of this message | ||
Straz@... above has posted a nice workaround. This here can be used to throtle bandwidth.
while(!feof($fn)) {
$buffer = fread($fn, 4096);
usleep (500000); //**** for about 8.7kb/s
print $buffer;
}
--
http://www.php.net/manual/en/function.fpassthru.php
http://master.php.net/manage/user-notes.php?action=edit+25436
http://master.php.net/manage/user-notes.php?action=delete+25436
http://master.php.net/manage/user-notes.php?action=reject+25436