用户
 找回密码
 入住 CI 中国社区
搜索
查看: 3563|回复: 2
收起左侧

关于ftp类的疑问

[复制链接]
发表于 2008-10-13 16:54:30 | 显示全部楼层 |阅读模式
PHP复制代码
$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服务器端,请用过这个类的同学帮忙回答下吧
发表于 2008-10-13 19:04:40 | 显示全部楼层
这个本地是客户端的目录,remote path 是服务器上的目录。

实际上,这个 FTP 类是一个从你这个服务器,访问另外一个 FTP 服务器的工具,local path 是你这台服务器,remote path 是远端的一台 FTP 服务器。
你这台服务器就是运行 PHP 的服务器了。
 楼主| 发表于 2008-10-14 00:28:15 | 显示全部楼层
感谢hex老大的回复,现在就清楚多了

本版积分规则