<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://www.rap.ru/"); $result = curl_exec($ch); curl_close($ch); preg_match("|class=\"news_1\">(.+)</table>|iU",$result,$main); echo $main[0]; ?>
$content = file_get_contents( "http://www.rap.ru" ); preg_match( '#<table width="100%" cellpadding="0" cellspacing="0" class="news_1">(.+)</tr>[\r\n]</table>#Uis' , $content, $array ); $content = $array[1]; $content = preg_replace( '#src="(.+)" alt#', 'src="http://www.rap.ru\\1" alt', $content); echo $content;