O well..

I changed another script..

<html>

Hmm, what am i doing today...<br><br>

<?
$xml = fread(fopen("http://localhost:9000/xml/status.xml",r),9999);
if (eregi("<playmode>playing",$xml)) {
if
(preg_match("/<title>([^<]*)<\/title>.*?<artist>(.*?)<\/artist>.*?<album>(.*?)<\/album>/s",
$xml, $m)) {

$track = $m[1] . " by " . $m[2] . " (Album: " . $m[3] . ")";
}

echo "I am listening to: $track";
}
else {
echo "I am not listening to any tunes..";
}
?>

</html>

This works nicely too, i saw it somewhere else but it had some small
probs.. it works now.

Cheers,
Erik


-- 
riemers
------------------------------------------------------------------------
riemers's Profile: http://forums.slimdevices.com/member.php?userid=4888
View this thread: http://forums.slimdevices.com/showthread.php?t=22798

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to