note 105894 added to function.fread
| From: | sven at spitzmacher dot com | Date: | Fri, 23 Sep 2011 16:54:40 +0000 |
| Subject: | note 105894 added to function.fread | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-183389@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 69.147.83.197
Probable Submitter: 31.17.84.160
----
Manual Page -- http://www.php.net/manual/en/function.fread.php
Edit -- https://master.php.net/note/edit/105894
Del: integrated -- https://master.php.net/note/delete/105894/integrated
Del: useless -- https://master.php.net/note/delete/105894/useless
Del: bad code -- https://master.php.net/note/delete/105894/bad+code
Del: spam -- https://master.php.net/note/delete/105894/spam
Del: non-english -- https://master.php.net/note/delete/105894/non-english
Del: in docs -- https://master.php.net/note/delete/105894/in+docs
Del: other reasons-- https://master.php.net/note/delete/105894
Reject -- https://master.php.net/note/reject/105894
Search -- https://master.php.net/manage/user-notes.php