je voulais vous en faire profiter :
function google_rank($keyword,$site) {
$start=0;
$recherche=file_get_contents('http://www.google.fr/search?hl=fr&q='.str_replace(" ","+",$keyword)."&num=100&start=0");
while (strstr($recherche,'<a class=l href="')&&!strstr($recherche,$site)) {
$start+=100;
$recherche=file_get_contents('http://www.google.fr/search?hl=fr&q='.str_replace(" ","+",$keyword)."&num=100&start=".$start);
}
if (strstr($recherche,'<a class=l href="')) {
$page=explode('<a class=l href="',$recherche);
$k=1;
while ($k<count($page)&&!strstr(substr($page[$k],0,strpos($page[$k],'"')),$site)) {
$k++;
}
if ($k<count($page)) $position=$start+$k;
else $position=false;
}
else $position=false;
return $position;
}
la fonction renvoie false si le site n'est pas dans les résultats