Home  >  Article  >  Backend Development  >  PHP实现连接FTP服务器,该如何解决

PHP实现连接FTP服务器,该如何解决

WBOY
WBOYOriginal
2016-06-13 13:44:271957browse

PHP实现连接FTP服务器
我在做连接FTP服务器的操作,可是总是出现这样的错误,想请教一下!我是按照网上说的,先晒下代码:
$ftp_connect=ftp_connect("acms.ny.net")or die("连接服务器失败"); 
$ftp_login=ftp_login($ftp_connect, "root", "aaa"); 
if(!$ftp_connect||!$ftp_login) 

  echo "不能连接 ";
exit; 
}
然后再我本地的localhost下面运行的结果就是“不能连接了”,它也不显示连接服务器失败,就说Warning: ftp_login() [function.ftp-login]: Login incorrect.(也就是说$ftp_login=ftp_login($ftp_connect, "root", "aaa"); 是错误的!)请大侠给个解释!我的QQ号是908695719,希望知道的大师帮下,急求!


------解决方案--------------------
密码错误,还是该用户不能远程连接,你试下用ftp软件连接呢
------解决方案--------------------
有木有端口号?
------解决方案--------------------
先用客户端软件试试
------解决方案--------------------

探讨

先用客户端软件试试
Statement:
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]