知识问答

goolge seo优化 关键词排名查询

<script>ec(2);</script>

$k=trim($_GET['k']);
$u=trim($_GET['u']);
$arrKeywords=explode(",",$k);
for($ii=0;$ii$outputstr='';
  for($i=0;$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 '';
       }else{
        echo '';
       }
    }