creating a list of folders
This is my first post: I'll be working my way through Beginning php4
but a quick question that's been bugging me:
Say I have a number of folders inside a folder: can php return me those folder names as an array, or a list, similar to the way it traverses a file like:
$handle = fopen("$folder/pics.txt", "r");
while ($line = fgets ($handle,4096)) {
list ($picfile, $picname, $picprice, $picdescrip ) = explode ("|", $line);
etc...
I'd like to be able to look in a folder and create a pulldown navigation menu.
Also, is there a way to have it ignore file names and just get the folder names?
|