Recursive walk trough directories

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bedford

    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 ?

  • Daniel Tryba

    #2
    Re: Recursive walk trough directories

    Bob Bedford <bedford1@notfo rspammershotmai l.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.

    Comment

    • salmo.bytes@montana-riverboats.com

      #3
      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

      Comment

      Working...