php获取域名的google收录示例
时间:2022-08-22 07:26:48
php获取域名的google收录示例
function get_index($domain){
$url="http://www.google.com/search?source=hp&biw=1440&bih=762&q=site%3A$domain&aq=f&aqi=g10&aql=&oq=";
$html=file_get_contents($url);
preg_match('/<div id=resultStats>[\S\s].*<nobr>/Ui', $html,$index);
for($i=0;$i<=strlen($index['0']);$i++){
if(is_numeric($index['0'][$i])){
$count.=$index['0'][$i];
}
}
return $count;
}
标签:域名,google收录
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
如何获知文件被改动的情况?
2009-11-24 20:42:00
古老的问题:清除浮动
2009-02-12 11:21:00
“你帮我把这个做成这个样子!”—当我听到这句话
2009-04-16 12:57:00
PDO::lastInsertId讲解
2023-06-11 14:31:37
一个asp版的xheditor上传图片服务器端文件
2009-12-21 14:18:00
![](https://img.aspxhome.com/file/UploadPic/20101/11/200982514518-20s.jpg)
Dreamweaver MX打造弹出“向导”
2009-07-21 12:41:00
![](https://img.aspxhome.com/file/UploadPic/20071/200713110227823s.jpg)
SQL语句练习实例之二——找出销售冠军
2011-10-24 19:52:45
实现一个获取元素样式的函数getStyle
2009-02-10 10:37:00
趣用文化元素
2009-09-03 11:53:00
![](https://img.aspxhome.com/file/UploadPic/20099/3/0909-using_culture_elements-01-12s.jpg)
ASP中遍历和操作Application对象的集合
2007-09-13 12:45:00
什么是 XML Web Service
2008-09-05 17:21:00
SWFObject1.5: 基于Javascript的Flash媒体版本检测与嵌入模块
2009-08-06 18:02:00
HTTP中header头部信息详解
2023-06-11 23:33:17
SEO与“nofollow”及“external nofollow”
2007-12-15 09:31:00
SQL Server数据库管理常用SQL和T-SQL语句
2009-05-07 14:01:00
MySQL数据库中CHAR与VARCHAR之争
2011-05-05 16:33:00
optgroup、sub、sup和bdo标签
2009-07-26 18:39:00
如何利用SQL Server数据库快照形成报表
2009-01-15 11:55:00
提高MYSQL查询效率的三个有效的尝试
2009-02-27 16:08:00
8大措施帮你构筑Access安全防线
2010-03-11 14:38:00