RE: [PHP] ftp_get()

From: Date: Wed, 12 Feb 2003 23:29:40 +0000
Subject: RE: [PHP] ftp_get()
Groups: php.general 
Request: Send a blank email to php-general+get-135376@lists.php.net to get a copy of this message
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:muti@cow.net] > Sent: Miércoles, 12 de Febrero de 2003 05:17 p.m. > To: php-general@lists.php.net > 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 >

« previous php.general (#135376) next »