Hi, this is rather lengthy and complicated, but I kind of need some help.
I would like to access a subfolder where images reside (something like [font="Lucida Console, Courier New"]./gallery_images/[/font]) and output all of the filenames in that folder that have the extensions of [font="Lucida Console, Courier New"]gif[/font], [font="Lucida Console, Courier New"]jpe[/font], [font="Lucida Console, Courier New"]jpg[/font], [font="Lucida Console, Courier New"]jpeg[/font], and [font="Lucida Console, Courier New"]png[/font], including those with capitalized extensions (like [font="Lucida Console, Courier New"]GIF[/font]).
For example...
DIRECTORY /path/to/script/gallery_images/
./index.php
./something.txt
./image1.png
./apples.gif
./file.JPG
./logo.jpe
./imageHandler.js
and output something like this:
The images in /path/to/script/gallery_images/ are...
<UL>
<LI>image1.png
<LI>apples.gif
<LI>file.JPG
<LI>logo.jpe
</UL>
Also, if it is possible, I would like to sort the files in the order that they were uploaded or last modified, even if they haven't been uploaded through PHP.
The images in /path/to/script/gallery_images/ are...
<UL>
<LI>image1.png - Uploaded 6 July 2008
<LI>apples.gif - Uploaded 4 July 2008
<LI>file.JPG - Uploaded 1 July 2008
<LI>logo.jpe - Uploaded 1 July 2008
</UL>