I try to connect with PHP to an 1and1 Server:
$ftp_connection = ftp_ssl_connect($ftp_server, 22);
if(ftp_login($ftp_connection, $ftp_user, $ftp_pass))
echo 'true';
else
echo 'false';
But it always return false and
ftp_login() expects parameter 1 to be resource, boolean given...
He can't get connection. If I try it with FileZilla, the Login works fine, so the login data are correct. Other Servers (not 1and1 works also fine).
What iam doing wrong?