(PHP 4, PHP 5, PHP 7)
Downloads a file from the FTP server
bool ftp_get ( resource $ftp_stream, string $local_file, string $remote_file, int $mode [, int $resumepos = 0 ] )
ftp_get() retrieves a remote file from the FTP server, and saves it into a local file.
Parameters:
ftp_stream
The link identifier of the FTP connection.
local_file