请输入您要查询的百科知识:

 

词条 ftp_put
释义

ftp_put

(PHP 3>= 3.0.13, PHP 4 )

ftp_put -- 上传文件到 FTP 服务器

说明

bool ftp_put ( resource ftp_stream, string remote_file, string local_file, int mode [, int startpos])

ftp_put() 函数用来上传由 local_file 参数指定的文件到 FTP 服务器,上传后的位置由 remote_file 指定。传输模式参数 mode 只能为 FTP_ASCII(文本模式)或 FTP_BINARY(二进制模式)。

注: 参数 startpos 仅适用于 PHP 4.3.0 以上版本。

如果成功则返回 TRUE,失败则返回 FALSE

例子 1. ftp_put()实例
<?php
$upload = ftp_put($conn_id, $destination_file, $source_file, FTP_ASCII);
?>

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/26 8:35:43