<?php $handle = fopen("http://78.46.69.36:18012/status2.xsl?mount=/live", "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://78.46.69.36:18012/status2.xsl?mount=/autodj", "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; ?>