By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,831 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,831 IT Pros & Developers. It's quick & easy.

FTP - downloading a file in chunks

P: 6
PHP version 4.4.4

Hi, what I'm trying to do is download though php (using ftp functions) a file from a home server in chunks (to prevent a browser from timing out). The files go from home-ftp-server to commercial server to customers pc. Its the home-ftp server to commercial server that needs editing. How do you use the resume option of the php function ftp_get()?. Can anyone help??
Feb 20 '08 #1
Share this Question
Share on Google+
2 Replies


ronverdonk
Expert 2.5K+
P: 4,258
That option is used to specify the offset position in the remote file from where the download starts.

For chunk downloading you need to split the remote file into x parts, then download each part separately and join them after the last download.

Ronald
Feb 20 '08 #2

P: 6
That option is used to specify the offset position in the remote file from where the download starts.
Is it not possible then to specify the stop position on a remote file? You could then do it in parts.

For chunk downloading you need to split the remote file into x parts, then download each part separately and join them after the last download.
Is it possible to join them using php? Say you split them into 500KB files...
Feb 21 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.