网站收录代码

百度搜索网站收录查询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). "个";
?>

 

ForDream:当前文章用户名 http://lowfk.com/index.php/2021/08/24/103.html:当前文章地址
THE END
分享
二维码
< <上一篇
下一篇>>