<?php
//Connect to the FTP server
$ftpstream = @ftp_connect('example.com');
$login = @ftp_login($ftpstream, 'username', 'password');
if($login) {
//Ftp now connected.. make your code here
}
else
{
// Ftp Not Connectd
}
//Close FTP connection
ftp_close($ftpstream);
?>
No comments:
Post a Comment