I don't know why i can't get a successful ftp_login.
All informations about my server are good but $connect fails.
Here is my code:
$connect = ftp_connect('myserver.1and1-data.host', 22, 5);
$login = ftp_login($connect, 'username', 'password');
I have this error:
PHP Warning: ftp_login() expects parameter 1 to be resource, bool given in C:\\...
I have to put 22 as port or i have an error.
I've tried to connect with the same informations with FileZilla and it works.
So do you know what am i doing wrong ?
Thanks :)