Re: How to download part of file form the url?
| From: | Adam Jon Richardson | Date: | Sat, 02 Jan 2016 07:32:06 +0000 |
| Subject: | Re: How to download part of file form the url? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-325317@lists.php.net to get a copy of this message | ||
On Sat, Jan 2, 2016 at 2:08 AM, 水静流深 <1248283536@qq.com> 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