-
Posts
1,893 -
Joined
-
Last visited
-
Days Won
8
Community Answers
-
AbraCadaver's post in how to find all images within subfolders was marked as the answer
I had a better one that used references but this is what I found:
function glob_recursive($pattern, $flags = 0) { $files = glob($pattern, $flags); foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) { $files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags)); } return $files; }