dongzhan5943 2012-11-01 06: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 09: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.

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

报告相同问题?

悬赏问题

  • ¥15 torch框架下的强化学习DQN训练奖励值浮动过低,希望指导如何调整
  • ¥35 西门子博图v16安装密钥提示CryptAcquireContext MS_DEF_PROV Error of containger opening
  • ¥15 mes系统扫码追溯功能
  • ¥40 selenium访问信用中国
  • ¥20 在搭建fabric网络过程中遇到“无法使用新的生命周期”的报错
  • ¥15 Python中关于代码运行报错的问题
  • ¥500 python 的API,有酬谢
  • ¥15 软件冲突问题,软件残留问题
  • ¥30 有没有人会写hLDA,有偿求写,我有一个文档,想通过hLDA得出这个文档的层次主题,有偿有偿!
  • ¥50 有没有人会写hLDA,有偿求写,我有一个文档,想通过hLDA得出这个文档的层次主题,有偿有偿!