I have a directory with subfolders containing images. I need to display all these on one page, and also their folder name, so something like this:
- echo Subfolder name
 - echo image, image, image
- echo Subfolder2 name
 - echo image2, image2 , image2
- etc
I've tried using
$images = glob($directory . "*.jpg");
but the problem is I have to exactly define the subfolder name in $directory, like "path/folder/subfolder/";
Is there any option like some "wildcard" that would check all subfolders and echo foreach subfolder name and its content?
Also, opendir and scandir can't be applied here due to server restrictions I can't control.
 
     
    