bradgrafelman;10972185 wrote:Rather than using the various *dir() functions, I would instead suggest you look into using [man]glob/man, especially since it offers more functionality in a much more compact form (one function call versus three or more).
Thanks Brad, glob is now my friend. I know I have only scratched the surface in learning PHP these past few years; because there's always something I haven't used before, or knew existed. But I will add this to my list. Here is what worked for me.
<?php
$files = glob("images/diy/09-2010/*.*");
for ($i=1; $i<count($files); $i++)
{
$num = $files[$i];
echo '<img src="'.$num.'" alt="random image">'." ";
}
?>
Not I have to look at my PHP manual and find how to resize the images and arrange them to be side-by-side.
But at least I've stepped over this precipice at the moment. Thanks to all for your excellent suggestions.