LOADING STUFF...

PHP:ftp_put()的用法_FTP函数

技术教程6小时前发布 北陌
13 0 0

PHP:ftp_put()的用法_FTP函数

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 指定。传输模式参数

参数

ftp_stream

FTP 连接资源。

remote_file

远程文件路径。

local_file

本地文件路径。

mode

传送模式,只能为 FTP_ASCII(文本模式)或 FTP_BINARY(二进制模式)。

startpos

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

Example #1 ftp_put() 实例

$file

© 版权声明

相关文章

暂无评论

暂无评论...