源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

php获取域名的google收录示例

  • 时间:2021-11-10 09:41 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:php获取域名的google收录示例
[u]复制代码[/u] 代码如下:
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; }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部