note 107625 added to function.ftp-nlist
| From: | Alex | Date: | Wed, 22 Feb 2012 14:53:17 +0000 |
| Subject: | note 107625 added to function.ftp-nlist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186277@lists.php.net to get a copy of this message | ||
If there are dots in the name
// assuming its a folder if there's no dot in the name
if (strpos($currentFile, '.') === false) {
should replaced by
// if ftp_chdir seccess
if(@ftp_chdir($ftpConnection,$currentFile)) {
----
Server IP: 69.147.83.197
Probable Submitter: 31.46.132.223
----
Manual Page -- http://www.php.net/manual/en/function.ftp-nlist.php
Edit -- https://master.php.net/note/edit/107625
Del: integrated -- https://master.php.net/note/delete/107625/integrated
Del: useless -- https://master.php.net/note/delete/107625/useless
Del: bad code -- https://master.php.net/note/delete/107625/bad+code
Del: spam -- https://master.php.net/note/delete/107625/spam
Del: non-english -- https://master.php.net/note/delete/107625/non-english
Del: in docs -- https://master.php.net/note/delete/107625/in+docs
Del: other reasons-- https://master.php.net/note/delete/107625
Reject -- https://master.php.net/note/reject/107625
Search -- https://master.php.net/manage/user-notes.php