ето кода :
но изкарва само по 9 резултата и немога да си обясня защо ..
<?
if ( isset($_POST[btn]) )
{
$filename = trim(htmlspecialchars($_POST[filename]));
$file = file_get_contents("http://search.data.bg/results/?where=files&type=audio/$filename");
$ex = explode('<tr class="filerow">',$file);
$count = count($ex);
$ex[0] = '';
$ex[$count-1] = '';
foreach ( $ex as $sors )
{
if ( $sors != '' ){
$ex2 = explode('<tr class="filerow dark">',$sors);
preg_match_all("/(<td>(.*)<\/td>)/ismU", $ex2[1], $matches);
$ex3 = explode('"',$matches[1][0]);
$rep = str_replace('>','',$ex3[2]);
$name = str_replace('</a</td','',$rep);
$link = $ex3[1];
$date = $matches[1][1];
echo '<a href='.$link.'>'.$name.'</a> Добавено на : '.$date.'<br>';
}}}
?>
но изкарва само по 9 резултата и немога да си обясня защо ..