File list

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
vantheman
Forum Newbie
Posts: 6
Joined: Fri Dec 05, 2008 6:12 pm

File list

Post by vantheman »

Hi,
What's the best way to list the contents of multiple subdirectory in one list?
For example:
On the site, there's a "secure" folder which contains several subfolders (week_of_1-22-09, week_of_1-29-09, etc.). Each folder contains mp3 files.
a.) I would like to populate a list, on the "home" page (which is not inside the 'secure' folder), that will show the Artist, Title, Genre & which folder it resides in.
b.) Secondly, I would also like to be able to search by (artist, title, etc.).
c.) The items on this list are for vewing ONLY (not clickable).

Thanks in advance
ldougherty
Forum Contributor
Posts: 103
Joined: Sun May 03, 2009 11:39 am

Re: File list

Post by ldougherty »

Instead of reading the directories store the information in a database.

You can store he tArtist, Title, Genre & which folder it resides in in the database which would then be searchable.
Post Reply