手机
当前位置:查字典教程网 >编程开发 >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实现用已经过去多长时间的方式显示时间

php获取访问者IP地址汇总

php实现读取内存顺序号

php注入实例

Yii获取当前url和域名的方法

用 php 编写的日历

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

隐性调用php程序的方法

PHP 反射(Reflection)使用实例

php获取网页里所有图片并存入数组的方法

精品推荐
分类导航