$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....");
}