// Connect to FTP
$conn_id = ftp_connect('ftp.devtutorials4u.co.uk') or die("Could not connect to FTP Server");
// log in to the FTP server
$login_result = ftp_login($conn_id, "ftp_user", "ftp_password");
echo ($login_result) ? "Logged in to the FTP server" : "Could not log in to the FTP Server";
// close the FTP connection
ftp_close($conn_id);

