FTP - downloading a file in chunks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blindlemonsam
    New Member
    • Jan 2008
    • 6

    FTP - downloading a file in chunks

    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??
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    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

    Comment

    • blindlemonsam
      New Member
      • Jan 2008
      • 6

      #3
      Originally posted by ronverdonk
      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.

      Originally posted by ronverdonk
      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...

      Comment

      Working...