I have try some code to download file using FTP, But File not send in computer client. this code is just copy file from another folder in server computer. Could you show me the solution. Here is my code:
<?php
//FTP File Download
$file_name = 'myfile.xml';
$destination = '/download/'.$file_name;
$ftp_user_name = 'chelsea';
$ftp_user_pass = 'drogba';
$ftp_server = '192.168.1.1';
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
ftp_nb_get($conn_id, $destination, $file_name, FTP_BINARY);
ftp_close($conn_id);
?>