note 34300 added to function.ftp-rawlist

From: Date: Tue, 22 Jul 2003 03:26:31 +0000
Subject: note 34300 added to function.ftp-rawlist
Groups: php.notes 
Request: Send a blank email to php-notes+get-52471@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-rawlist.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34300 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34300&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34300&report=yes

« previous php.notes (#52471) next »