Page 1 of 1

Directory Listing

Posted: Tue Nov 30, 2004 3:38 pm
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!

Posted: Tue Nov 30, 2004 3:50 pm
by xisle
Start by printing the filenames to the screen, see examples here:
http://us2.php.net/manual/en/function.readdir.php

Posted: Tue Nov 30, 2004 4:49 pm
by badcoder
thanks dude!

appreciate that.