Stream Title: ", "", $pg); //extract data $paage = ereg_replace(".*", "", $paage); //extract data $pge = ereg_replace(".*Stream Genre: ", "", $pg); //extract data $pge = ereg_replace(".*", "", $pge); //extract data $pe = ereg_replace(".*Stream Genre: ", "", $pg); //extract data $pe = ereg_replace(".*", "", $pe); //extract data $musica = ereg_replace(".*Current Song: ", "", $pg); //extract data $musica = ereg_replace(".*", "", $musica); //extract data $numbers = explode(",",$paage); //extract data $servertitle=$numbers[0]; //set variable $connected=$numbers[1]; //set variable } $fp2 = fsockopen("$host", $port); //open connection if(!$fp2) { $success2=2; //se-t if no connection } if($success2!=2){ //if connection fputs($fp2,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //get 7.html while(!feof($fp2)) { $pg2 .= fgets($fp2, 1000); } fclose($fp2); //close connection $pag = ereg_replace(".*", "", $pg2); //extract data $pag = ereg_replace(".*", ",", $pag); //extract data $numbers = explode(",",$pag); //extract data $currentlisteners=$numbers[0]; //set variable } ?> Rádio Vure