Home > php教程 > PHP源码 > goolge seo优化 关键词排名查询

goolge seo优化 关键词排名查询

WBOY
Release: 2016-06-08 17:28:03
Original
1305 people have browsed it
<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 '';
       }
    }
  • Related labels:
    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Recommendations
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template