The code below does not throw an error, it just does not move the files.
$old_file = '/opt/macromedia/fms/'.$myfile;
$new_file = '/var/www/html/video/'.$myfile;
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if (ftp_rename($conn_id, $old_file, $new_file)) {
$isok = 1;
} else {
$isok = 0;
}
Is it possible to move files that are on the main root of the server to the html folder? The ftp_user_name does have full access to all folders.
Thanks!
Tim