yygcom 发表于 2008-10-13 16:54:30

关于ftp类的疑问


$this->ftp->upload()
Uploads a file to your server. You must supply the local path and the remote path, and you can optionally set the mode and permissions. Example:

$this->ftp->upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);



请问里面提到的 local path是指的是浏览器端的目录还是web服务器端的啊?
我的理解是 有三个端,浏览器端,web服务器端,和ftp服务器端,请用过这个类的同学帮忙回答下吧

Hex 发表于 2008-10-13 19:04:40

这个本地是客户端的目录,remote path 是服务器上的目录。

实际上,这个 FTP 类是一个从你这个服务器,访问另外一个 FTP 服务器的工具,local path 是你这台服务器,remote path 是远端的一台 FTP 服务器。
你这台服务器就是运行 PHP 的服务器了。

yygcom 发表于 2008-10-14 00:28:15

感谢hex老大的回复,现在就清楚多了
页: [1]
查看完整版本: 关于ftp类的疑问