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]

    Automated queries

    Google's Terms of Service do not allow the sending of automated queries of any sort to our system without express permission in advance from Google. Sending automated queries absorbs resources and includes using any software (such as WebPosition Gold&#8482😉 to send automated queries to Google to determine how a website or webpage ranks in Google search results for various queries.

    http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=66357

      Write a Reply...