/    Sign up×
Community /Pin to ProfileBookmark

Large Media Collection – HELP

I have a large collection of MP3 files on a SBS2003 machine. Currently, I just have a raw web connection – meaning, I can browse all of my songs, but it’s just text – no HTML, PHP.. nothing on the top layer.

Is there a way to have PHP make this collection more visually appealing? Of course there is, I just haven’t seen it.

The typical file structure is ARTIST | ALBUMS | SONGs

or FOLDER | FOLDER | MP3

Any ideas are appreciated… the simpler, the better… I want this to be light.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SyCoNov 07.2008 — Yes you can do this easily enough. You need a recursive function that opens a directory and looks at the content. If it's a file it displays the name (with link) and if its a folder, the function calls itself to open the new folder and start the process again.

Here's a link to a script that should get you started

http://www.dmxzone.com/ShowDetail.asp?NewsId=14199

The main functions you'll need are

opendir

readdir

is_dir (or is_file)

Read the user notes on those pages, they should give you all the code you need.
×

Success!

Help @evo190 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...