Re: Directory structure

From: Date: Wed, 07 Nov 2001 17:38:24 +0000
Subject: Re: Directory structure
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73767@lists.php.net to get a copy of this message
On Wed, Nov 07, 2001 at 04:10:51PM -0000, 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. Look at is_dir(), and then consider writing a function to be called recursively. Matt

« previous php.general (#73767) next »