1. 首页
  2. 数据库
  3. 其它
  4. php获取域名的google收录示例

php获取域名的google收录示例

上传者: 2020-12-22 22:52:06上传 PDF文件 27.04KB 热度 17次
复制代码 代码如下: function get_index($domain){ $url=”http://www.google.com/search?source=hp&biw=1440&bih=762&q=site:$domain&aq=f&aqi=g10&aql=&oq=”; $html=file_get_contents($url); preg_match(‘/[\S\s].*/Ui’, $html,$index); for($i=0;$i<=strlen($index[‘0’]);$i++){ if(is_num
下载地址
用户评论