Page 1 of 1

listing files with links

Posted: Wed Jul 14, 2004 1:25 pm
by des.murphy
I am setting up a site that will contain a list of images, many of them will be of the same format (digital photo images eg 99599213.jpg, 99599214.jpg, 99599220 etc...). So, what I want to to is to read in the list and have it listed alpha numerically, so the next image the client selects will be the correct one.

Is there a way for php to look in a folder and see what the next file it should select is?

Posted: Wed Jul 14, 2004 1:34 pm
by feyd
[php_man]glob[/php_man]() or a combo of [php_man]opendir[/php_man] and [php_man]readdir[/php_man]