Hey I want to make script which should check if the site (deliver as $url parameter) is indexed or not. I try sth like this but unfortunetly i doesnt work.
Any ideas how to do this ?
[code=php]function szukaj($url) {
//url looks sth like this http://www.google.pl/search?hl=pl&source=hp&q=site:http://www.site.pl&aq=f&cad=h but $content retrives google main site
$content = file_get_contents($url);
$findme = strpos('not match any documents', $content);
return $findme;
}[/code]