Re: Directory structure
| From: | Henrik Hansen | Date: | Wed, 07 Nov 2001 17:53:19 +0000 |
| Subject: | Re: Directory structure | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73770@lists.php.net to get a copy of this message | ||
gordon.stewart@net800.co.uk (Gordon Stewart) wrote:
> Dear list
>
> I have a directory structure with several layers and I would like to process
> the files in those directories. I would like my php program to look in these
> directories and report how many files there are in each directory. Is there
> a way of doing this at run time. My directory structure will change every
> time the php script is run? I have had a look at opendir and readdir and as
> I can see it is only for one directory level.
http://www.fsck.dk/downloads/source.php?file=indexer.txt
is a script that prints files in more than one level, you can just
adjust it to follow your needs.
--
Henrik Hansen