Good day to you all,
is there a way that I can use glob recursive ly in the following code ?
<?PHP
foreach(glob('Photos/*', GLOB_ONLYDIR) as $dir) {
echo '<b>'.$dir.'</b><br>';
}
?>
Thanks!
Good day to you all,
is there a way that I can use glob recursive ly in the following code ?
<?PHP
foreach(glob('Photos/*', GLOB_ONLYDIR) as $dir) {
echo '<b>'.$dir.'</b><br>';
}
?>
Thanks!
Which version of PHP are you using, and what type of output are you looking for? For example, are you just trying to list all subdirectories (recursively, with no files) of a given directory?
And here I was about ready to whip up something fancy like a [man]RecursiveDirectoryIterator[/man]... :p