关于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服务器端,请用过这个类的同学帮忙回答下吧 这个本地是客户端的目录,remote path 是服务器上的目录。
实际上,这个 FTP 类是一个从你这个服务器,访问另外一个 FTP 服务器的工具,local path 是你这台服务器,remote path 是远端的一台 FTP 服务器。
你这台服务器就是运行 PHP 的服务器了。 感谢hex老大的回复,现在就清楚多了
页:
[1]