Web lists-archives.com

Re: [PHP] How to download part of file form the url?




On Sat, Jan 2, 2016 at 2:08 AM, 水静流深 <1248283536@xxxxxx> wrote:

> A huge file was located on the url .
>
> http://gensho.acc.umu.se/debian-cd/8.2.0/amd64/iso-cd/debian-8.2.0-amd64-lxde-CD-1.iso
>
> Now i want to download some bytes between 10000bytes  and 20000bytes on
> the file .
> HOW to write the php command?


Hi,

If I understood you correctly, you can use PHP's curl library and set the
range header:
http://stackoverflow.com/questions/985455/curl-how-to-limit-size-of-get?rq=1

Adam