function get_index($domain){
$url="http://www.google.com/search?source=hp&biw=1440&bih=762&q=site%3A$domain&aq=f&aqi=g10&aql=&oq=";
$html=file_get_contents($url);
preg_match('/
[\S\s].*/Ui', $html,$index);
for($i=0;$iif(is_numeric($index['0'][$i])){
$count.=$index['0'][$i];
}
}
return $count;
}