<?php
function getNumberIndexedPagesByGoogle($site) {
$url = "http://www.google.com/search?hl=en&q=site:" . $site . "&btnG=&meta=";
$source = file_get_contents($url);
$ok = preg_match_all('/<b>([0-9][0-9\.]*?)<\/b>/', $source, $m, PREG_SET_ORDER);
if ($ok < 3) $rn = 0;
else $rn = str_replace(".", "", $m[2][1]);
return intval($rn);
}
echo getNumberIndexedPagesByGoogle("codjng.blogspot.com");
?>
Title:
Get Number Indexed Pages By Google
Description:
<?php function getNumberIndexedPagesByGoogle($site) { $url = "http://www.google.com/search?hl=en&q=site:" . $si...
...
Rating:
4