Page 1 of 1

recursive glob ?

Posted: Sat Jan 30, 2010 9:22 pm
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!

Re: recursive glob ?

Posted: Sat Jan 30, 2010 10:39 pm
by requinix