<? $handle = fopen("http://$ip:$port/status2.xsl?mount=/$mount", "rb"); //Для освновного потока $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); $mas=explode(",",$contents); $current=$mas[16]; if ($text =='' and $current=='') { $handle = fopen("http://$ip:$port/status2.xsl?mount=/$mn", "rb"); //для нон стопа $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); $mas=explode(",",$contents); $current=$mas[16]; } ?>