ok, i am using php to get connect to a ftp server, and in the ftp server, i want to download a file and save it to my H.D. , but if i use the ftp_get() function, the file will be saved at my PHP hosting service folder, and not my H.D.
even if i tell the functin to save at : c:\files\x.wav or c:\file\x.wav or c:/files/x.wav ... The function saves it to my remote server folder, named as c:\files\x.wav
here is my code:
$ftpStream = ftp_connect("ftp.SERVER.com");
$loginResult = ftp_login($ftpStream, "USERNAME", "SENHA");
if ($loginResult) {
$dir = ftp_chdir($ftpStream, "musicas/mp3");
$file = ftp_pasv($ftpStream,true) ;
$file = ftp_get($ftpStream, $where, "complete.wav", FTP_BINARY);
echo $file;
}
ftp_quit($ftpStream);