Connecting Tech Pros Worldwide Help | Site Map

Recursive walk trough directories

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:16 PM
Bob Bedford
Guest
 
Posts: n/a
Default Recursive walk trough directories

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 ?


  #2  
Old July 17th, 2005, 12:16 PM
Daniel Tryba
Guest
 
Posts: n/a
Default 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.

  #3  
Old July 17th, 2005, 12:16 PM
salmo.bytes@montana-riverboats.com
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.