我需要连接到只有 
,host
和username
的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 配置没有错误,但如果我选择任何其他加密方法,我会收到错误。
我的PHP代码登录有什么问题?