arkadaşım al sorun yok başlık ve linki çekiyor döngüye alırsan sıkıntısız bütün duyuruları çekersin
<?php
header("Content-Type: text/html; charset=utf-8");
function verial($url)
{if (!extension_loaded(curl))
{
die("Extension yuklu degil socket deneyebilirsin");
}
$ch = curl_init();
if (!$ch) { die ("Curl oturumu baslatamadim.."); }
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$site=verial("http://www.diyanet.gov.tr/turkish/dy/default.aspx"); // Alinacak Siteyi Belirliyoruz.
preg_match_all('#<div id="duyurular" >(.*?)</div>#si',$site,$bilgi,PREG_SET_ORDER);
preg_match_all('#<h3><a class="more" href="(.*?)">#si',$bilgi[0][0],$FollowME1,PREG_SET_ORDER);
$FollowME1=$FollowME1[0][1];
preg_match_all('#">(.*?)</a>#si',$bilgi[0][0],$FollowME2,PREG_SET_ORDER);
$FollowME2=$FollowME2[0][1];
///////////////////////////////////////////////////
?>
<a href="http://www.diyanet.gov.tr/turkish/dy/<?=$FollowME1?>"><?=$FollowME2?></a>