note 75421 added to function.scandir
| From: | Edwin at NOSPAM dot example dot com | Date: | Tue, 29 May 2007 12:46:08 +0000 |
| Subject: | note 75421 added to function.scandir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126995@lists.php.net to get a copy of this message | ||
Aryel wrote a function called php4_scandir which works only if the is_dir function is called with
the complete path. Otherwise the function will only work within the current working directory. So
changing is_dir($file) to is_dir("$dir/$file") will work.
I believe that the test on skipDots should be negated to get the desired effect.
----
Server IP: 194.109.193.76
Probable Submitter: 81.206.213.181
----
Manual Page -- http://www.php.net/manual/en/function.scandir.php
Edit -- https://master.php.net/note/edit/75421
Del: integrated -- https://master.php.net/note/delete/75421/integrated
Del: useless -- https://master.php.net/note/delete/75421/useless
Del: bad code -- https://master.php.net/note/delete/75421/bad+code
Del: spam -- https://master.php.net/note/delete/75421/spam
Del: non-english -- https://master.php.net/note/delete/75421/non-english
Del: in docs -- https://master.php.net/note/delete/75421/in+docs
Del: other reasons-- https://master.php.net/note/delete/75421
Reject -- https://master.php.net/note/reject/75421
Search -- https://master.php.net/manage/user-notes.php