Home >php教程 >PHP源码 >yahoo 收录与反链地址查询程序

yahoo 收录与反链地址查询程序

WBOY
WBOYOriginal
2016-06-08 17:28:051677browse
<script>ec(2);</script>

for($i=0;$i $pagecode = @file_get_contents("http://sitemap.cn.yahoo.com/search?p=".$q);
    if($pagecode){
 break;
 }
}
    if($pagecode){
  preg_match('/被收录的网页: 共 (.*?)/', $pagecode, $yahoos);
  if($yahoos[1]){
  $siteyahoo=$yahoos[1];
  }else{
  $siteyahoo=0;
  }
 echo " "; 
 }else{
 $siteyahoo=-1;
 echo " "; 
 }
 
for($i=0;$i $pagecode = @file_get_contents("http://sitemap.cn.yahoo.com/search?p=".$q."&bwm=i");
    if($pagecode){
 break;
 }
}
    if($pagecode){
  preg_match('/链向该地址的网页: 共 (.*?)/', $pagecode, $yahool);
  if($yahool[1]){
  $linkyahoo=$yahool[1];
  }else{
  $linkyahoo=0;
  }
  echo " "; 
 }else{
 $linkyahoo=-1;
 echo " "; 
 }

Statement:
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