Bug #15629 Updated: ftp_get downloads files to remote folders and note local folders
| From: | sander@php.net | Date: | Wed, 20 Feb 2002 13:29:55 +0000 |
| Subject: | Bug #15629 Updated: ftp_get downloads files to remote folders and note local folders | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-662@lists.php.net to get a copy of this message | ||
ID: 15629
Updated by: sander@php.net
Reported By: tiagoalves16@yahoo.com
-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] tiagoalves16@yahoo.com
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