From: [EMAIL PROTECTED] Operating system: Unix Like PHP version: 4.1.1 PHP Bug Type: FTP related Bug description: ftp_get downloads files to remote folders and note local folders
All the ftp_functions seens to work nicelly at my unix like server, but when i am trying to download a file from a FTP server(my_ftp_server" to my hard disk, the ftp_get function returns true, but the file goes to the same folder where my PHP script is running (a diferent server) named something like "c:\\songs\\complete.wav" below is my script: $ftpStream = ftp_connect("my_ftp_server"); $loginResult = ftp_login($ftpStream, "my_user_name", "my_pass"); if ($loginResult) { $dir = ftp_chdir($ftpStream, "music/song"); $file = ftp_pasv($ftpStream,true) ; //get the remote file and put it in the same directory as the php file $file = ftp_get($ftpStream, 'c:\\songs\\complete.wav', "complete.wav", FTP_BINARY); echo $file; } ftp_quit($ftpStream); -- Edit bug report at http://bugs.php.net/?id=15629&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15629&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15629&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15629&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15629&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15629&r=support Expected behavior: http://bugs.php.net/fix.php?id=15629&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15629&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15629&r=submittedtwice