手机
当前位置:查字典教程网 >编程开发 >php教程 >php 批量查询搜狗sogou代码分享
php 批量查询搜狗sogou代码分享
摘要:php批量查询搜狗sogou的rank,非常不错,主要是使用了php的file_get_contents()方法。

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

<?php date_default_timezone_set('Asia/Shanghai'); header('Content-Type: text/html; charset=utf-8'); @$txt = file_get_contents("list.txt" ); $arr = explode("rn" , 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 批量查询搜狗sogou代码分享】相关文章:

php快速查找数据库中恶意代码的方法

图形数字验证代码

php中数据的批量导入(csv文件)

php操作redis缓存方法分享

我的论坛源代码(二)

一段php加密解密的代码

域名查询代码公布

php 防止表单重复提交方法

php生成图片验证码

我的论坛源代码(八)

精品推荐
分类导航