警告:ftp_login():未登录。在FileZilla中工作只使用普通PHP(不安全)加密模式

时间:2015-08-08 15:26:45

标签: php ftp filezilla

我需要连接到只有 hostusername的FTP服务器。当我尝试这段代码时:

password

我收到错误消息

$conn_id = ftp_connect($ftp_server, 21) or die("Couldn't connect to $ftp_server");

$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
登录下面的

FileZilla 配置没有错误,但如果我选择任何其他加密方法,我会收到错误。

FileZilla screenshot

使用任何其他加密方法,我在FileZilla中收到此消息。 enter image description here

我的PHP代码登录有什么问题?

0 个答案:

没有答案