Tuesday, October 03, 2006

пределения тИЦ сайта.

<?
function getTIC($url)
{
$str=file('http://bar-navig.yandex.ru/u?ver=2&show=32&url='.$url);
if ($str==false)
{
$ans=false;
}
else
{
$is_find=preg_match("/value=\"(.\d*)\"/", join("",$str), $tic);

if ($is_find<1)
{
$ans=0;
}
else
{
$ans=$tic[1];
}
}


return $ans;
}
?>

0 Comments:

Post a Comment

<< Home

Google
 
Web seo-script-archive.blogspot.com