Chris, Wouldn't work if you urlencode the path to the file?
Something like: ftp_get($con,"/tmp/download.tmp", urlencode("/remote/file dir/file.txt"), FTP_ASCII) THT -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -----Original Message----- > From: Muti [mailto:[EMAIL PROTECTED]] > Sent: Miércoles, 12 de Febrero de 2003 05:17 p.m. > To: [EMAIL PROTECTED] > Subject: [PHP] ftp_get() > > > I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file > dir/file.txt",FTP_ASCII). I am getting errors because of the > space in the > remote filename. I tried using "/remote/file\ dir/file.txt" as the > filename, but that also fails. I also tried to ftp_chdir() > to the directory > first and get file.txt to no avail. Does anyone have any > ideas on how to > GET a file that is in a directory with a space in it? > > -Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php