《PHP應(yīng)用:php 批量查詢搜狗sogou代碼分享》要點(diǎn):
本文介紹了PHP應(yīng)用:php 批量查詢搜狗sogou代碼分享,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
PHP實(shí)戰(zhàn)php 批量查詢搜狗sogou的rank,非常不錯(cuò),主要是使用了php的file_get_contents()辦法.
PHP實(shí)戰(zhàn)
<?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;
}
}
PHP實(shí)戰(zhàn)以上所述便是本文的全部?jī)?nèi)容了,希望大家能夠喜歡.
歡迎參與《PHP應(yīng)用:php 批量查詢搜狗sogou代碼分享》討論,分享您的想法,維易PHP學(xué)院為您提供專業(yè)教程。
轉(zhuǎn)載請(qǐng)注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/10849.html