LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2016, 01:10 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 237

Rep: Reputation: Disabled
How to download part of file from the url?


A huge file was located on the url .
http://gensho.acc.umu.se/debian-cd/8...-lxde-CD-1.iso

Now i want to download some bytes between 10000bytes and 20000bytes on the file .
HOW to write the php command?
 
Old 01-02-2016, 01:26 AM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
that is an iso file it is seen as one huge blob ok. so not breaking that up. You may want to look at alternative ways to install debian. if thats what you are trying to do that is disk 1 so I would think so.
 
Old 01-02-2016, 02:11 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Why don't you describe the problem rather than the answer you seem to think you already know.
Maybe then we can help - and maybe some-one will have a better solution.
 
Old 01-02-2016, 07:27 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
luofeiyu, what do you need from that iso, and why?

it is possible to download debian packages seperately.
 
Old 01-03-2016, 12:34 AM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,235

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
You download from the beginning and stop when you have enough bytes. As for how to write the command, I can take you as far as looking at the API documentation.

http://php.net/manual/en/book.curl.php

Count me among those who want you to say why you want to do this, so that we can tell you what to do instead.

Last edited by dugan; 01-06-2016 at 07:43 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update part of a URL to another URL in MySQL guest Linux - Software 2 02-15-2009 09:02 PM
Getting part of URL: How do I do this? Use Apache or PHP? vxc69 Programming 1 11-06-2008 01:28 PM
Only download part of a file. leukvoorj Programming 6 02-23-2007 03:27 PM
A program capable to download a specific part of file? Vitalie Ciubotaru Linux - Software 4 11-16-2006 08:46 PM
XMMS download URLs down. Any url to download it? astitva Linux - Newbie 3 12-28-2003 05:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration