Şu kod ile adresi verilen siteden kod aralığındaki kısmı çekmek istiyorum. Yapamadım, sorun nerde acaba?
PHP:
<?
$target_site = file_get_contents('http://www.frmtr.com/universiteler/3578879-g-antep-tip.html');
preg_match_all('/<!-- message -->(.*?)<!-- \/ message -->/', $target_site, $record);
for($i=0; $i<=count($record); $i++){
$sayi = '<font color=red>';
$sayi .= $i+1;
$sayi .= "</font>";
echo $sayi;
echo $record[0][$i];
}
?>