Script: links to allmusic.com (PHP)
This code has been updated. See this entry for the newest version.
I’ve been on a bit of a PHP coding binge today. Some of you might find this useful, some not. I use DoSomething, a plugin for winamp, to put a file on my webserver containing information on my current playlist. For a while, I used some PHP goodness to create an “I’m Feeling Lucky” google search based off of the author, but then google changed some of their code and I decided to just scrap the feature altogether.Then Brad wrote a similar little tidbit, except that it interfaced with allmusic.com’s database. I liked it. I had to have it. (Greedy, greedy domesticat!) But Brad and I did things a bit differently. My output file from DoSomething is a little .php file that does nothing but declare variables like artist_one and song_one. I then require() that file in all my pages, so that each skin can display the songlist in whatever fashion I’ve decided is best.
(Example: skin#11, ‘twenty-one,’ only displays two songs; the others display five.)
This tidbit changes an artist’s name into the format that the allmusic database is expecting, and also drops an apostrophe-escaped (and, thus, javascript-safe) version of the artist’s name into the bottom status bar. I didn’t really care for the raw allmusic.com search URL, and I thought having something a little cleaner would be nice.
- ‹ previous
- 445 of 1673
- next ›


Post new comment