HTML-Kodu:
<? $sitecik = "https://teknokorsan.com"; ?><?
function TitleOku($sitecik){
$icerik = file_get_contents($sitecik);
$kalip = "|<[s]*title[s]*>([^<]+)<[s]*/[s]*title[s]*>|Ui";
if(preg_match($kalip, $icerik, $match))
{
return $match[1];
}
else
{
return false;
}
}
$title = TitleOku($sitecik);
?>
Sorgulanan Site: <a href="<? echo $sitecik; ?>"><? echo $title; ?></a> <br>
Alexa Global: <?php
$site = "https://alexa.com/siteinfo/$sitecik";
$parcala = '@<strong class="metrics-data align-vmiddle">(.*?)</strong>@si';
$botara = file_get_contents($site);
preg_match_all($parcala, $botara, $gelen);
echo $gelen[0][0];
?> <br>
Alexa TR: <?php
$url = "$sitecik";
$desen = array('/<REACH RANK="(.+?)"\/>/','/<COUNTRY CODE="TR" NAME="Turkey" RANK="(.+?)"\/>/','/<LINKSIN NUM="(.+?)"\/>/');
preg_match($desen[1],file_get_contents('http://data.alexa.com/data?cli=10&dat=s&url='.$url),$cikti1);
print_r(" ".$cikti1[1]." <br />");
?></div>
aLinti...