note 24472 added to ref.dir
| From: | erere@php.net | Date: | Sat, 17 Aug 2002 10:40:20 +0000 |
| Subject: | note 24472 added to ref.dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35166@lists.php.net to get a copy of this message | ||
In fancao0515@0451.com's function list_dir($dirname):
if(is_dir($dirname.$file))
list_dir($dirname.$file.'\\');
should become:
if(is_dir($dirname.$file))
$result_array[]=list_dir($dirname.$file.'\\');
or recursion will be done, but no subdirs will be pushed into the $result_array.
Ernesto
--
http://www.php.net/manual/en/ref.dir.php
http://master.php.net/manage/user-notes.php?action=edit+24472
http://master.php.net/manage/user-notes.php?action=delete+24472
http://master.php.net/manage/user-notes.php?action=reject+24472