新域上的ftp_get()不会下载文件 [英] ftp_get() on new domain won't download files

查看:190
本文介绍了新域上的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目录)更改为此文件,它给我错误,它无法在此路径上找到此文件,因此路径是正确的。


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

解决方案

Heya,独角兽。


i已检查连接,路径。好吧,如果我将路径(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.

解决方案

Heya, unicorn.

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''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?


Changed thread title to better describe the problem.


read more carefully, i said ''when'' i changed path from ''correct'' path to ''incorrect'' path, it showed me error that file is not found, that means that when path was correct, it could see file, but couldn''t read it. thanks...


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆