网站收录代码

百度搜索网站收录查询PHP代码
<?php
function baidu($url){
  $baidu="http://www.baidu.com/s?wd=site%3A".$url;
  $site=file_get_contents($baidu);
  preg_match("/百度为您找到相关结果约(.*)个/", $site,$count);
  $count=str_replace("百度为您找到相关结果约","",$count);
  $count=str_replace("个","",$count);
  $count=str_replace(",","",$count);
  $count=str_replace(" ","",$count);
  $count=strip_tags($count[0]);
  if($count!="") return $count;
                return 0;
}
$site = $_GET['url'];

echo "百度为您找到相关结果约" .baidu($site). "个";
?>

百度搜索网站反链查询PHP代码
<?php
function baidu($url){
  $baidu="http://www.baidu.com/s?wd=domain%3A".$url;
  $site=file_get_contents($baidu);
  preg_match("/百度为您找到相关结果约(.*)个/", $site,$count);
  $count=str_replace("百度为您找到相关结果约","",$count);
  $count=str_replace("个","",$count);
  $count=str_replace(",","",$count);
  $count=str_replace(" ","",$count);
  $count=strip_tags($count[0]);
  if($count!="") return $count;
                return 0;
}
$site = $_GET['url'];

echo "百度为您找到相关结果约" .baidu($site). "个";
?>

360搜索网站收录查询PHP代码
<?php
function sogou($url){
  $sogou="https://www.so.com/s?q=site%3A".$url;
  $site=file_get_contents($sogou);
  preg_match("/找到相关结果约(.*)个</", $site,$count);
  $count=str_replace("找到相关结果约","",$count);
  $count=str_replace("个","",$count);
  $count=str_replace(",","",$count);
  $count=str_replace(" ","",$count);
  $count=strip_tags($count[0]);
  if($count!="") return $count;
                return 0;
}
$site = $_GET['url'];

echo "360为您找到相关结果约" .sogou($site). "个";
?>

360搜索网站反链查询PHP代码

<?php
function sogou($url){
  $sogou="https://www.so.com/s?q=".$url;
  $site=file_get_contents($sogou);
  preg_match("/找到相关结果约(.*)个/", $site,$count);
  $count=str_replace("找到相关结果约","",$count);
  $count=str_replace("个","",$count);
  $count=str_replace(",","",$count);
  $count=str_replace(" ","",$count);
  $count=strip_tags($count[0]);
  if($count!="") return $count;
                return 0;
}
$site = $_GET['url'];

echo "360为您找到相关结果约" .sogou($site). "个";
?>

 

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容