-
Couldn't load subscription status.
- Fork 8k
Open
Description
Description
would be nice to have a ?int $length=null for fpassthru.
currently, implementing HTTP range requests seems to be a pain: readfile() isn't suitable because it has neither a $offset nor a $length argument, and fpassthru isn't suitable either because it doesn't have a $length argument, so you'll have to resort to a fread()+echo loop.
It would be easier and faster to implement HTTP range support if fpassthru had a $length argument.