dongzhan5943 2012-11-01 14:07
浏览 362
已采纳

Php ftp_connect失败,FTP客户端连接

(this question might not belong here, but on ServerFault, I don't know exactly where the problem comes from)

I'm trying to connect to an FTP server like this:

$con = ftp_connect( '86.xxx.xx.xxx', 21 ) or die("FTP connect error");

and it always throws me the error message.

I can connect like this to other FTP servers, but not this one. I can also connect to this one via an FTP client.

What server settings could be wrong that permit a client connect but not PHP?

Thanks for any help!

  • 写回答

1条回答 默认 最新

  • dongtui4038 2012-11-26 17:27
    关注

    It seems my host was blocking remote FTP access to other servers. Oddly enough it allowed me to connect to my other servers at this host.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?