Hello, everyone. I have a server, (linux), which was going to test the php operation ftp, but has been unable to connect, as follows:
<?
error_reporting(E_ALL);
$host = "XXX";
$user = "XXX";
$pwd = "XXX";
$port = 2121;
$f_conn = ftp_connect($host,2121);
var_dump($f_conn);
return error: bool (false)
ftp_connect cannot establish a connection. I tested that other servers can connect.
it is possible to connect directly with ftp software (connection protocol: ftp), what is the situation?
php version configuration problem or firewall? Or whatever.
phpinfo:
ftp: