ftp_ssl_connect没有带用户并通过

时间:2015-07-08 12:29:21

标签: php ftp

我有一个从My apache webserver与Ftp服务器通信的功能。

$conn_id = ftp_ssl_connect($ftp_server) or die("Could not connect to $ftp_server");

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);

在编译时收到警告,如下所示。

PHP Warning:  ftp_login(): Please login with USER and PASS.

如果我将函数调用从ftp_ssl_connect更改为ftp_connect

,则运行相同的函数

我已启用openSSL。

0 个答案:

没有答案