Re: Open all subdirectories in a directory
| From: | Hannes Magnusson | Date: | Sat, 14 Aug 2004 13:03:56 +0000 |
| Subject: | Re: Open all subdirectories in a directory | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-193789@lists.php.net to get a copy of this message | ||
On 14 Aug 2004 12:52:12 -0000
jacobbbc@yahoo.co.in (Phpdiscuss - Php Newsgroups And Mailing Lists) wrote:
> Hello Professionals,
> Can anybody help me to open all subdirectories in a directory,
> I used is_dir() to check whether it is a dir, and if yes,
> I recursively called it with the new dir name.
> But all subdirectories are not open the recursion is not working for more
> than 1 level.
Try to call is_dir() with full/path/to/dir ( realpath() may come in handy ) and/or chdir() to the
dir.
> I tested it in windows server.
> Expecting your help,
> Jacob.