手机
当前位置:查字典教程网 >编程开发 >php教程 >php获取域名的google收录示例
php获取域名的google收录示例
摘要:复制代码代码如下:functionget_index($domain){$url="http://www.google.com/search...

复制代码 代码如下:

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>[Ss].*<nobr>/Ui', $html,$index);

for($i=0;$i<=strlen($index['0']);$i++){

if(is_numeric($index['0'][$i])){

$count.=$index['0'][$i];

}

}

return $count;

}

【php获取域名的google收录示例】相关文章:

php获取访问者IP地址汇总

php动态绑定变量的用法

隐性调用php程序的方法

php按单词截取字符串的方法

php实现读取内存顺序号

一个php作的文本留言本的例子(五)

php中命名空间namespace用法介绍

用php发送带附件的Email

php结合ACCESS的跨库查询功能

php注入实例

精品推荐
分类导航