ID: 15629 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: FTP related Operating System: Unix Like PHP Version: 4.1.1 New Comment:
The bug system is not the appropriate forum for asking support questions. For a list of a range of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php Previous Comments: ------------------------------------------------------------------------ [2002-02-19 14:53:19] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15629&edit=1
