Re: ftp_get()
| From: | Tom Rogers | Date: | Thu, 13 Feb 2003 04:31:37 +0000 |
| Subject: | Re: ftp_get() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135389@lists.php.net to get a copy of this message | ||
Hi,
Thursday, February 13, 2003, 9:17:17 AM, you wrote:
M> I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file
M> dir/file.txt",FTP_ASCII). I am getting errors because of the space in the
M> remote filename. I tried using "/remote/file\ dir/file.txt" as the
M> filename, but that also fails. I also tried to ftp_chdir() to the directory
M> first and get file.txt to no avail. Does anyone have any ideas on how to
M> GET a file that is in a directory with a space in it?
M> -Chris
Try escaping it $dir = "/remote/file\ dir/";
--
regards,
Tom