PHP Code:
/* ... making it smart(er) -- leave the password at the default and we'll use /played instead of /admin.cgi */
if ($sPass <> "CHANGEME")
$url = file_get_contents("http://".$sIP.":".$sPort"/admin.cgi?pass=".$sPass."&mode=viewxml&page=4&sid=".$sID);
else
$url = file_get_contents("http://".$sIP.":".$sPort."/played?type=xml&sid=".$sID);