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 ...
else { ... code for reporting that directory could not be opened ... }

Mike Frazer

"Todd Cary" <[EMAIL PROTECTED]> wrote in message
> 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

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to