首頁  >  文章  >  php教程  >  php 批量查询搜狗sogou

php 批量查询搜狗sogou

WBOY
WBOY原創
2016-06-06 19:38:23729瀏覽

php批量查询搜狗sogou http://blog.ppsql.net/post-1858.html 无 ?phpdate_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

php 批量查询搜狗sogou

http://blog.ppsql.net/post-1858.html
<?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?ur=http%3A%2F%2F{$v}%2F");
	$sr=str_replace('sogourank=','',$sr);
	if($sr>2){
		echo $v."<br />\n";
	}else{
		continue;	
	}
}
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn