>  기사  >  백엔드 개발  >  php 批量查询搜狗sogou代码分享,phpsogou_PHP教程

php 批量查询搜狗sogou代码分享,phpsogou_PHP教程

WBOY
WBOY원래의
2016-07-13 09:53:31883검색

php 批量查询搜狗sogou代码分享,phpsogou

php 批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。

<&#63;php
date_default_timezone_set('Asia/Shanghai');
header('Content-Type: text/html; charset=utf-8');
 
@$txt = file_get_contents("list.txt" );
$arr = explode("\r\n" , trim($txt));
 
if(count($txtarr)<0){
  exit('no site');
}
 
foreach($arr as $v){
  $sr=file_get_contents("http://rank.ie.sogou.com/sogourank.php&#63;ur=http%3A%2F%2F{$v}%2F");
  $sr=str_replace('sogourank=','',$sr);
  if($sr>2){
    echo $v."<br />\n";
  }else{
    continue;  
  }
}

以上所述就是本文的全部内容了,希望大家能够喜欢。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/1000259.htmlTechArticlephp 批量查询搜狗sogou代码分享,phpsogou php 批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。 phpdate_default_timezone_s...
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.