ftp_get
(PHP 3>= 3.0.13, PHP 4 )ftp_get -- Downloads a file from the FTP server
Description
bool ftp_get ( resource ftp_stream, string local_file, string remote_file, int mode [, int resumepos])
ftp_get() retrieves remote_file from the FTP server, and saves it to local_file locally. The transfer mode specified must be either FTP_ASCII or FTP_BINARY. 注: The resumepos parameter was added in PHP 4.3.0. Returns TRUE on success or FALSE on error. 
ftp_get
下载文件。语法: boolean ftp_get(int ftp_stream, string local_file, string remote_file, int mode);返回值: 布尔值函数种类: 网络系统
 
 
内容说明 
本函数用来下载指定的文件。参数 ftp_stream 为 FTP 的连接代码。参数 local_file 为欲存成本地端的文件名。参数 remote_file 为欲下载的文件名。参数 mode 的值有 FTP_ASCII 及 FTP_BINARY 二种,分别表示文字档宁或者是二进位文件。成功则返回 true 值,失败则返回 false 值。