virtualascona
12/4/2013 - 10:08 AM

From http://stackoverflow.com/questions/20245859/warning-ftp-login-supplied-resource-is-not-a-valid-ftp-buffer-resource-in

$ftp_user_name = 'name';
$ftp_user_pass = 'pass';
$ftp_server = 'abc.info';

$errno='';
$connect = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); 

if(!ftp_login($connect, $ftp_user_name, $ftp_user_pass))
{
    die("But failed at login Attempted to connect to $connection for user $ftp_user_name....");
}