Directory Listing

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
badcoder
Forum Newbie
Posts: 2
Joined: Tue Nov 30, 2004 3:25 pm

Directory Listing

Post by badcoder »

I'm trying to find information on how to get a directory listing of all the files in a directory.

To be more specific. All files will be images. I want to display this lisiting in a List Menu. When a user selects an item from the list the corresponding image is displayed in a placeholder.

Something similar to the example here:
http://www.duo.ca/hello/dynamic/formvie ... cordid=178

Thanks in advance...much appreciated!
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

Start by printing the filenames to the screen, see examples here:
http://us2.php.net/manual/en/function.readdir.php
badcoder
Forum Newbie
Posts: 2
Joined: Tue Nov 30, 2004 3:25 pm

Post by badcoder »

thanks dude!

appreciate that.
Post Reply