View Full Version : Music collection online

01-07-2004, 06:09 PM
I've had my music collection online for quite a while... when I used to use CDStore, a friend wrote a quick-and-dirty app that created genre-based static HTML pages for my collection (you can see it at http://www.laze.net/collections/music-old/ ). When I moved to OrangeCD, I wanted to continue to provide similar information -- only a few fields and no detailed info on specific releases. And I wanted to be able to do it very easily.

So, I wrote up a quick PHP script that reads a comma-delimited file generated by Orange. It automatically determines the genres (and accounts for a CD's inclusion in more than one genre) and creates the navigation and tables based on that info. It's a short script and works nice and quickly, even on a collection of ~2100 entries. Take a peek:


I'm still far from done entering my collection, but it gives you a general idea.