本文介绍了新域上的ftp_get()不会下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我已经将我的网站从一个域移到另一个域。它完全适用于旧域,ftp_put(),ftp_delete() - 即FTP上传和删除脚本工作正常,但是......我有问题使用ftp_get()wicth显示错误,并说:


警告:ftp_get()[function.ftp-get]:在第43行的/home/mydomain/public_html/down_att.php中打开4.gif时出错


''下载文件''4.gif''。



我已检查连接,路径。好吧,如果我将路径(ftp目录)更改为此文件,它给我错误,它无法在此路径上找到此文件,因此路径是正确的。


我检查了目录,文件名,权限。我不知道为什么它不起作用,我赞美你的建议,谢谢。

解决方案



我很困惑。如果您尝试了路径,并且说它找不到文件,那是不是意味着路径*不正确?




Hi guys,

I have moved my site from one domain to another. it worked perfectly on old domain, ftp_put(), ftp_delete() - i.e. FTP upload and remove scripts work fine, but... i have problem using ftp_get() wicth shows me error, and says :

Warning: ftp_get() [function.ftp-get]: Error opening 4.gif in /home/mydomain/public_html/down_att.php on line 43

Couldn''t download file ''4.gif'' .


i have checked connection, path. well if i change path (ftp directory) to this file it gives me error that it cannot find this file on this path, so path is correct.

i have checked directories, filename, permissions. i have no clue why it doesn work, i appriciate your advice, thanks.

解决方案

I''m confused. If you tried the path, and it said that it couldn''t find the file, doesn''t that mean that the path is *not* correct?




这篇关于新域上的ftp_get()不会下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 07:31