欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

php獲取域名的google收錄示例

 更新時間:2014年03月24日 17:20:26   作者:  
這篇文章主要介紹了php獲取域名的google收錄具體實現(xiàn),需要的朋友可以參考下
復制代碼 代碼如下:

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;
}

相關(guān)文章

最新評論