This tool shows you how many of your site’s pages are indexed in each of the three big search engines, Google, Yahoo, and MSN. Adding the www. does make a difference and will show you different results when added and not added in front of your domain.
if(@$_REQUEST['url'] && checkImage())
{
$url = urlencode($_REQUEST['url']);
$google = fetch("http://www.google.com/search?q=site:$url&hl=en&sa=N");
$msn = fetch("http://search.msn.co.uk/results.aspx?q=site%3A$url");
$yahoo = fetch("http://search.yahooapis.com/WebSearchService/V1/webSearch?appid=$yahooID&query=$url&results=1");
preg_match("#Results .*?of.*?([\d,]+)#”,$google,$google);
$google = preg_replace(“#\D#”,”",@$google[1] ? $google[1] : 0);
$sGoogle = number_format($google);
preg_match(“#Page 1 of ([\d,]+) results#”,$msn,$msn);
$msn = preg_replace(“#\D#”,”",@$msn[1] ? $msn[1] : 0);
$sMsn = number_format($msn);
preg_match(“#
$sYahoo = number_format($yahoo);
$str = "
“;
$str .= “Retrieving Search Engine Indexes for:
$_REQUEST[url]
“;
$str .= “
| $sGoogle | |
| MSN | $sMsn |
| Yahoo! | $sYahoo |
“;
echo $str;
}
?>

