Connecting Tech Pros Worldwide Forums | Help | Site Map

Recursive walk trough directories

Bob Bedford
Guest
 
Posts: n/a
#1: Jul 17 '05
I've a directory structure where I store images.

0-999:
images/0/
then
images/0/0/
then
images/0/0/0-1.jpg
images/0/0/0-2.jpg
images/0/0/0-3.jpg

1000-1999:
images/1/
then
images/1/0/
then
images/1/0/1000-1.jpg
images/1/0/1000-2.jpg
images/1/0/1000-3.jpg


I've quite 1500 levels like this
I must list all X-1.jpg in the three.

How to do so ?


Daniel Tryba
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Recursive walk trough directories


Bob Bedford <bedford1@notforspammershotmail.com> wrote:[color=blue]
> I've a directory structure where I store images.
> I've quite 1500 levels like this
> I must list all X-1.jpg in the three.
>
> How to do so ?[/color]

See user contribs on http://nl2.php.net/manual/en/function.opendir.php
There are recursive dir listings in there.

salmo.bytes@montana-riverboats.com
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Recursive walk trough directories


For recursive/automatic image-page generation,
complete with navigation for images, subdirs and Up links,
search for Robopages at phpclasses.org

Closed Thread