Выглядит вот так:
Код: Выделить всё
<?php$handle = fopen("http://188.40.124.23:8008/status2.xsl?mount=/ultradio", "rb");$contents = '';while (!feof($handle)) {$contents .= fread($handle, 8192);}fclose($handle);$mas=explode(",",$contents);$dj=$mas[15];$dj = str_replace ("~", " ICQ: ", $dj);$text = $mas[16];if ($text =='' and $dj==''){ /////////////////////////////////////Non stop/////////$handle = fopen("http://188.40.124.23:8008/status2.xsl?mount=/nonstop", "rb");$contents = '';while (!feof($handle)) {$contents .= fread($handle, 8192);}fclose($handle);//$str = $contents;$mas=explode(",",$contents);$text = $mas[16];$dj='Non Stop';}$string = $text;//echo 'Ведущий: '.$dj;//echo "<br>";echo ' '.$string; ?>