I am looking to create a system which on signup will create a subdomain on my website for the users account area.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update
i want to download a remote file on internet to my host. but i want to download it with multi-part downloading to make it download faster. just the same as download managers .
You have to use Range header while requesting.
ReplyDeleteSending Range: bytes=500-999 will download the bytes form 500 to 999;
Note: PHP is not a multi-threaded language. So even you download by multi-part it'll be sequential. Unless you fork multiple process. Though using third-party extensions like curl you can do this through curl_multi_exec
This will be dependent on the server that you are downloading from supporting Range Requests. Read up on Range Requests, and combine this with a multi-threaded cURL, and you'll be able to have more than one download stream working at a time.
ReplyDelete