recursive glob ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Peuplarchie
Forum Contributor
Posts: 148
Joined: Sat Feb 04, 2006 10:49 pm

recursive glob ?

Post by Peuplarchie »

Good day to you all,
is there a way that I can use glob recursive ly in the following code ?

Code: Select all

 
 
<?PHP
foreach(glob('Photos/*', GLOB_ONLYDIR) as $dir) {
  echo '<b>'.$dir.'</b><br>';
}  
?>
 
 

Thanks!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: recursive glob ?

Post by requinix »

Post Reply