note 34300 rejected from function.ftp-rawlist by nicos
| From: | nicos@php.net | Date: | Tue, 22 Jul 2003 09:59:32 +0000 |
| Subject: | note 34300 rejected from function.ftp-rawlist by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-52473@lists.php.net to get a copy of this message | ||
Note Submitter: Brendan Wright
----
Reading a directory with a space in it's path doesn't seem to work.
Use chdir instead like so:
if (stristr($rPath, " ")) {
ftp_chdir($ftpconn, $rPath);
$raw = ftp_rawlist($ftpconn, "./");
}
else {
$raw = ftp_rawlist($ftpconn, $rPath);
}
You can email me at: brendan (at) scriptworks.co.nz