I'm actually thinking of using jquery lightbox to apply to all my images but I figured with jquery lightbox I should at least make a page with all thumbnail images.
So I'm trying to think of a way to easily bring out all the images in the folder+subfolders, but somehow I'm searching through sites/goolging most of them only talk about scandir and glob.
I tried something like...
foreach (glob("*.png") as $filename) {
echo "$filename size " . filesize($filename) . "\n";
}
but glob still doesn't go INTO sub directories same as for scandir...
I can do the same code few times to check each sub directories but it'll be a annoying to do so...
$image_files = scandir("./images/");
I thought of doing the code above and sub a variable into ./images/variable
within a loop or something but somehow I just can't get outside the box and get it to work...
anyone able to give me a hint or give me a hand?
Thanks in advance...