<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><html>
<title>Sayyaç</title>
</head>
<body>
<?php
function getdata($url,$ref=NULL)
{
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_HEADER,0);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)");
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
$account = 'dizikalitex';
$connection = getdata('http://www.sayyac.com/tr/stats/referrer_tracking/'.$account);
$tags = array();
preg_match_all('#Google:(.*?)</td>#si',$connection,$match,PREG_SET_ORDER);
for($i=0; $i<count($match); $i++)
{
preg_match('#>(.*?)</a>#si',$match[$i][1],$tit);
$tags[] = $tit[1];
}
foreach($tags as $tag)
{
echo $tag.'<br/>';
}
?>
</body>
</html>Veritabanına ekleme işinide kendin halledersin artık.