listing files with links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
des.murphy
Forum Newbie
Posts: 7
Joined: Wed Jul 14, 2004 1:25 pm

listing files with links

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[php_man]glob[/php_man]() or a combo of [php_man]opendir[/php_man] and [php_man]readdir[/php_man]
Post Reply