ftp_get
Downloads a file from the FTP server
&reftitle.description;
boolftp_get
resourceftp_stream
stringlocal_file
stringremote_file
intmode
intresumepos
ftp_get retrieves a remote file from the FTP server,
and saves it into a local file.
&reftitle.parameters;
ftp_stream
The link identifier of the FTP connection.
local_file
The local file path (will be overwritten if the file already exists).
remote_file
The remote file path.
mode
The transfer mode. Must be either FTP_ASCII or
FTP_BINARY.
resumepos
The position in the remote file to start downloading from.
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
ftp_get example
]]>
&reftitle.changelog;
&Version;
&Description;
4.3.0
resumepos was added.
&reftitle.seealso;
ftp_pasv
ftp_fget
ftp_nb_get
ftp_nb_fget