Ben Whitehead wrote:
I am trying to sort an image menu system which is passed a directory name,
and can count and name the files in a menu from simply seeing which files
are in this directory. It would be ideal if it can just do this just by
looking at the files in the directory, and their file names, but if that is
not possible, could it us the information in a text file I have created and
placed in this directory?

Anyway help would be greatly received! (I'm new to PHP, so simple help would
be even more appreciated!) :S


I wrote some code that might be what you want. It was for a reference download system. Here is what it does :


1. Scans a directory for all sub-directories
2. Scans those subdirectoties for files
3. Creates a drop down box with the appropriate categories (sub dir name ), and file listing.



You can see it in action at http://www.meidomus.com


(top left, marked REFERENCE DOWNLOAD)

Let me know if this is what you were after and I will post the code. Its just two functions.

--
Burhan Khalid
phplist[at]meidomus[dot]com




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to