I'm trying to get php to ftp to a server and retrive a file. I am able to ftp to server #1 just fine but when I try and connect to server #2, ftp_connect(); returns a 0 which causes ftp_login() to return the error: "Warning: ftp_login() expects parameter 1 to be resource, boolean given in /home/username/website-www/import/import.php on line 59"
one difference between server #1 & server #2 is server #2 is secure and can only be accessed by unblocked ip addresses. I've given #2 the ip address of the server but that doesn't help. I don't think the problem is on my end because I'm able to connect and process the files from #1, but I could be wrong.
// FTP Stbuy
// set up basic connection
$conn_id = ftp_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // <- line #59
Any help would be greatly appreciated.