I've searched the forums - and found a number of posts similar to what I want to do. However, from those posts, I'm still in the dark about exactly what to do...
I have a directory, /www/pub/, in which I would like to create a directory listing much like Apache does for directories without indexes - and I'd like to do this in PHP.
What I can't figure out how to do is how to recursively go through the directory and pick out files and directories - and then set a flag in a variable so that the correct icon can be placed next to each directory/file.
Any ideas?