yup tried mpd and never managed to get it to work. Tried using it under ampache actually on a debian box.
I did find
http://freshmeat.net/projects/toastermp3/ which is where this all started but when I put the scripts in /var/www/ and after I configure it by editing the config file I get errors in the apache2 error.log saying unable to open mixer and unable to open playlists. It uses mpg123 to play the files and aumix to set volume levels. The useful bit of the program is:
<?php
if ($vol) `aumix -v $vol`;
$v = `aumix -q`;
$v = explode("\n", $v);
$v = str_replace(",", "", $v[0]);
$v = explode(" ", $v);
$v = $v[1];
$vol = $v;
?><html>
<body background="images/bg.png">
<center>
<img src="images/minus.png">
<img src="images/left.png" border=0><?php
for ($i=0; $i < 101; $i=$i+3) {
if ($vol != $i) {
echo "<a href=\"bottom_frame.php?vol=$i\"><img src=\"images/box.png\" border=0></a>";
} else {
echo "<a href=\"bottom_frame.php?vol=$i\"><img src=\"images/box2.png\" border=0></a>";
}
}
?><img src="images/right.png" border=0>
<img src="images/plus.png">
</center>
</body>
</html>