How to partially ftp a file (using ftp, wget with shell scripts or php)?

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-05-09T04:06:46Z Indexed on 2010/05/09 4:18 UTC
Read the original article Hit count: 253

Filed under:
|
|
|
|

hi, i want to partially download a ftp file. i just need to download lets say 10MB, but after skipping 100MB (for example).

In php, http://php.net/manual/en/function.ftp-fget.php this function allows arbitay starting point:

bool ftp_fget  (  resource $ftp_stream  ,  resource $handle  ,  string $remote_file  ,  int $mode  [,  int $resumepos = 0  ] )

however it does not allow me to set "how many bytes" i want to download.

© Stack Overflow or respective owner

Related posts about shell

Related posts about shell-scripting