Re: I lost the message...

From: Date: Thu, 24 Jan 2002 08:39:33 +0000
Subject: Re: I lost the message...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81964@lists.php.net to get a copy of this message
Here's a generic way to access each file sequentially and perform your specific actions: if ($dir = opendir("/path/to/directory")) { while ($file = readdir($dir)) { ... perform your condition checks here ... } closedir($dir); } else { ... code for reporting that directory could not be opened ... } Mike Frazer "Todd Cary" <todd@aristesoftware.com> wrote in message news:3C4F8AA0.6064DE86@aristesoftware.com... > I am embarrassed to say that I lost the anser to my question on the > syntax to get a list of all of the files in a specified directory > matching a sertain criteria. > > Anyone willing to give me another chance? > > Todd > > -- > Todd Cary > Ariste Software > todd@aristesoftware.com > >

« previous php.general (#81964) next »