tucuxi.org: software engineering, photography and troubleshooting

Attachments:
Dump in ~/bin:
  randmp3.php php script
 
How to run:
  php ~/bin/randmp3.php
 
 

Got one of those flash-based mp3 players with nowhere near enough space for your entire mp3 collection? Unix or windows geek? Then this script's for you. I got sick of having the same music, day in, day out, and decided to write a script to randomly pick music to put on. It's very beta, but it works well enough. No warranty and all that stuff.

It currently works on Linux; haven't tested it with Windows, but it should work - just specify your paths like this: C:/foo/bar/baz. You'll need the CLI PHP interpreter (as with most of my other scripts.. I prefer coding in PHP, even for CLI stuff).

Go into the script, and change these:

Email me if you have any problems with it.

tucuxi.org content is copyright © 2001-2007.

social network