php ftp
$conn_id = ftp_connect('example.com');
if(!$conn_id){
echo 'connection error.';
}
// login with username and password
echo $login_result = ftp_login($conn_id, 'username', 'password');
echo '<br>';
// upload a file
if(!$conn_id){
echo 'connection error.';
}
// login with username and password
echo $login_result = ftp_login($conn_id, 'username', 'password');
echo '<br>';
// upload a file
Comments
Post a Comment