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 值。
(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 值。
解决方案 »
- 用脚本模拟浏览器Post,结果总是能被服务器识别,怎么办
- 怎么实现网页下载服务器中文件?
- 为什么提示无效呢?foreach
- php查询mysql数据库问题
- PHP 插入大量mysql记录的问题
- 如何得到某一年全年有多少天?
- 100分问$_POST值成双倍了!!!,中间还有input控件名称
- 框架的问题,为什么会覆盖顶上的内容了?
- $_SERVER['PHP_SELF']这个变量在ASP中有没有类似的东西
- 请问,用PHP架设网站能不能写一个类似INI文件的配置文件呢??
- php新手关于session的问题 在线等答
- 这是什么错误:Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 0
c:盘必须有tmp目录
有错误。
ftp_get($conn,"c:\tmp\模板1.doc","模板a.doc",FTP_ASCII );
路径你弄反了。
但是还是传不下来。