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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux