【www.gdgbn.com--word】

$k=trim($_GET["k"]);
$u=trim($_GET["u"]);
$arrKeywords=explode(",",$k);
for($ii=0;$iiwords);$ii++){
$outputstr="";
  for($i=0;$i<10;$i++){
  $sourcecode= @file_get_contents("http://www.google.cn/search?num=100&q=".$arrKeywords[$ii]);
   if($sourcecode){
   break;
   }
  }
 preg_match_all("/

  • (.*?)(.*?)//", $sourcecode, $urlmatches);
      for($j=0;$j    if(strstr($urlmatches[2][$j],$u)){
       $outputstr.=1+$j.",";
       }
      }
       if($outputstr<>""){
        echo "<script type="text/javascript教程">parent.document.getElementById("Googlek".$ii."").innerHTML = "".$outputstr."";</script>";
       }else{
        echo "<script type="text/javascript">parent.document.getElementById("Googlek".$ii."").innerHTML = "排名100以外";</script>";
       }
    }

    本文来源:http://www.gdgbn.com/bangongshuma/23788/