Home >php教程 >PHP源码 >站长工具-php soso 收录页面数查询程序

站长工具-php soso 收录页面数查询程序

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

for($i=0;$i $pagecode = @file_get_contents("http://www.soso.com/q?w=site:".$q);
    if($pagecode){
 break;
 }
}
//echo $pagecode;
    if($pagecode){
  preg_match('/搜索到约(.*?)项结果/', $pagecode, $sosos);
  if($sosos[1]){
  $sitesoso=$sosos[1];
  }else{
  $sitesoso=0;
  }
  echo " "; 
 }else{
 $sitesoso=-1;
 echo " "; 
 }
 
for($i=0;$i $pagecode = @file_get_contents("http://www.soso.com/q?w=link:".$q);
    if($pagecode){
 break;
 }
}
    if($pagecode){
  preg_match('/搜索到约(.*?)项结果/', $pagecode, $sosol);
  if($sosol[1]){
  $linksoso=$sosol[1];
  }else{
  $linksoso=0;
  }
  echo " "; 
 }else{
 $linksoso=-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