note 42557 added to function.fpassthru
| From: | nexz2004 at yahoo dot com | Date: | Fri, 21 May 2004 04:30:50 +0000 |
| Subject: | note 42557 added to function.fpassthru | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69899@lists.php.net to get a copy of this message | ||
also it is possible to make your php script resume downloads, to do this you need to check
$_SERVER['HTTP_RANGE'] which may contain something like this
"bytes=10-" - resume from position 10, and to end of file
when sending response it is also needed to send with headers
Accept-Ranges: bytes
Content-Length: {filesize}
Content-Range: bytes 10-{filesize-1}/{ffilesize}
hope its usefull
----
Manual Page -- http://www.php.net/manual/en/function.fpassthru.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42557
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42557&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42557&report=yes
Search -- http://master.php.net/manage/user-notes.php