您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

php获取域名的google收录示例_PHP教程

2025/6/27 14:53:18发布16次查看
复制代码 代码如下:
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('/[\s\s].*/ui', $html,$index);
for($i=0;$iif(is_numeric($index['0'][$i])){
$count.=$index['0'][$i];
}
}
return $count;
}
http://www.bkjia.com/phpjc/745208.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/745208.htmltecharticle复制代码 代码如下: function get_index($domain){ $url=http://www.google.com/search?source=hpbih=762aq=faql= $html=file_get_contents($url); preg_match('/div id=resultstats[\...
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product