my incredibly minimal now playing script

April 20, 2005

I wrote this a minute ago. It took me a minute. Feel free to use it for your own stuff.

create a file called song.txt in the folder of your choice, and chmod it to 777 .

Create a file in the same directory and call it update.php .

put the following code in the update.php file:

<?
$a = $_GET[‘b’];
$c = “echo $a > song.txt”;
system($c);
?>

Download the winamp dosomething plugin from here .

Once installed, go to your winamp preferences, go to the general tab, and click on the option labeled “DoSomething Plugin[gen_dosomething.dll]” and click the configure button.

In the actions selection, select “Submit a URL”

In the first text box, enter the following:

http://yoursite.com/path/to/update.php?b=%%URL_CURRENTSONG%%

After that, unclick the “disable plugin” button, and click the “Enable ID3 Info Gathering” button. Then click OK.

Now select a song on your winamp playlist.

One you do that, go to http://yoursite.com/path/to/song.txt . It should say the song you are listening to there.

If you wish to display it on your website, you can use the php include() function like so.

<? include(‘/system/path/to/your/song.txt’); ?>

then it should work.

have fun.

Advertisements

6 Responses to “my incredibly minimal now playing script”


  1. That would be perfect.

    Except, music is evil. And I am saintly.

  2. Krista Antonini Says:

    O.K.

  3. Krista Antonini Says:

    Death toll aprox. 70 (INT)

  4. sandrar Says:

    Hi! I was surfing and found your blog post… nice! I love your blog. šŸ™‚ Cheers! Sandra. R.

  5. black celebs Says:

    Sign: wdpad Hello!!! dettb and 9403gezwbhqchg and 9819 : I love your blog. šŸ™‚ I just came across your blog.


  6. Sign: zdbrw Hello!!! hrsuk and 7840pefdfkwbhq and 5344 : Cool!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: