note 105894 deleted from function.fread by danbrown
| From: | danbrown@php.net | Date: | Fri, 23 Sep 2011 16:55:46 +0000 |
| Subject: | note 105894 deleted from function.fread by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183390@lists.php.net to get a copy of this message | ||
Note Submitter: sven at spitzmacher dot com
----
A note to the users and creators of those resumeable download scripts posted here:
for RANGE requests, be sure to NOT ignore the requested range LENGTH. E.g. dont use fseek() and
fread()-till-feof() but use fseek() and fread()-till-RANGELENGTH. and of course check the range for
validy aswell as some download managers tend to send weird values.
all scripts posted so far simply ignore the actual requested range length - thats not just a bad
coding style but it will result in lots of weird and hard-to-debug problems for your users.