$file = file("http://wap.siza.ru/download/index.php?$QUERY_STRING"); $file = @implode("", $file); ...... $begins = strpos($file '<p><small>'); $ends = strpos($file '*****<br/>');