<? 

///---------------------\\ 
$ip = "127.0.0.1";
$port = "4444";
$sifre = "sifre"; 
//\---------------------// 
$d = fsockopen($ip, $port, $err, $errno, 30); 
if ($d) 
{ 
fputs($d, "GET /admin.cgi?pass=$sifre&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); 
while (!feof($d)) 
{ 
$sayfa .= fgets($d,1000); 
} 
preg_match("/<SERVERTITLE>(.+)<\/SERVERTITLE>/",$sayfa,$dj); 
preg_match("/<SERVERGENRE>(.+)<\/SERVERGENRE>/",$sayfa,$radyo); 
preg_match("/<SONGTITLE>(.+)<\/SONGTITLE>/",$sayfa,$sarki); 
echo " <marquee direction=left>Dj: $dj[0] &THORN;ark&yacute;: ".urldecode($sarki[0])."</marquee>"; 
fclose($d); 
} else { 
echo "&THORN;uan Radyo Aktif De&eth;ildir."; 
fclose($d); 
} 
?>