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

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

WBOY
Release: 2016-06-08 17:28:06
Original
981 people have browsed it
<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 " "; 
 }

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