|
PHP5中文手册
ftp_put(PHP 4, PHP 5) 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(二进制模式)。
如果成功则返回 TRUE,失败则返回 FALSE。
Example#1 ftp_put() 实例
<?php |