<?php

function veri($url)
{
$ch = curl_init();
$timeout = 60;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.6 (KHTML, like Gecko) Chrome/16.0.897.0 Safari/535.6');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt($ch, CURLOPT_REFERER, "https://www.alexa.com");

$data = curl_exec($ch);
curl_close($ch);

return $data;
}

function getir($desen,$kaynak)
{
preg_match_all($desen,$kaynak,$cikti);
return $cikti;
}
$veri = veri("https://www.alexa.com/siteinfo/foreverautohits.com");



$alexa = getir('@<strong class="metrics-data align-vmiddle">(.*?)</strong>@si',$veri);


echo "<b>Alexa Sırası :</b> " . strip_tags($alexa[0][0]) . "<br />";

?>