للعلم فقط 
هناك طريقة اخرى للنقل عن طريق دالة ftp
	كود PHP:
	
// set up basic connection 
$conn_id = ftp_connect($ftp_server);  
// login with username and password 
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);  
// check connection 
if ((!$conn_id) || (!$login_result)) {  
       echo "FTP connection has failed!<br>"; 
       exit;  
   } else { 
       echo "Connected to $ftp_server"; 
   } 
// get contents of the current directory 
$contents = ftp_nlist($conn_id, "."); 
foreach($contents as $key => $file) 
    { 
    $extension = substr(strrchr($file, "."), 1); 
    echo "KEY $key => $file   $extension<br>"; 
    if($extension == "zip") 
        { 
        // try to download $server_file and save to $local_file 
        if (ftp_get($conn_id, $file, $file, FTP_BINARY)) 
            { 
               echo "Successfully written to $file\n<br>"; 
            // move file into OLD folder 
            movefile($file, $conn_id); 
            } 
        else 
            { 
               echo "There was a problem\n<br>"; 
            } 
        } 
    } 
     
// close the FTP stream  
ftp_close($conn_id); 
function movefile($filename, $conn_id) 
    { 
    $command = "rename ".$filename." Old/".$filename;  
    echo "in rename zip file $command<br>"; 
    // execute command 
    if (ftp_exec($conn_id, $command)) 
        { 
        echo "$command executed successfully\n<br>"; 
        $output = true; 
        } 
    else 
        { 
        echo "could not execute $command\n<br>"; 
        $output = false; 
        } 
    return $output; 
    }