ftp-SAE中用php上传文件到FTP服务器

WBOY
Release: 2016-06-02 11:31:49
Original
1059 people have browsed it

phpftp

现在SAE里边支持php的 @ftp_connect($FTP_HOST,$FTP_PORT) 方法吗?查资料说是不支持,所以用了curl模拟ftp上传,在上传的时候 curl_setopt($ch, CURLOPT_URL, 'ftp://username:password@IP:21/'.$dir.'/'.$dest); 这个URL应该怎么写呢?这个目录是指要传到的FTP服务器的目录吗?运行的时候会报 AE ERROR: INVALID URI 这个错误。图片说明我先想把SAESTOR里边的一个文件传到ftp服务器 home/wuming 目录下边 取名aaa.txt。这样写有什么问题吗?刚接触这块,大神勿喷……

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!