Jens Lehmann wrote:
James wrote:

LWP is a perl thing.  Curl is probably the best thing to use.
Have you tried using googles php api which they provide free?
http://www.google.com/apis/


I had a look at the API, but I'm not sure if it's appropriate and easy to use with PHP. It's still beta and might change again (or maybe I've to pay for every query soon). Has anyone already used the api? Is it simple to (for instance) find out all listed pages of www.foo.com which are in the Top 1000?

Jens



You'll need to have PEAR::SOAP installed (very easy with php-4.3). Get SOAP_Google.php from http://www.sebastian-bergmann.de/?page=google You'll need to register with google to get an licenseKey. Then a simple search:

<?php
require_once 'SOAP_Google.php';

$google = new SOAP_Google('your license key');

$result = $google->search(
  array(
    'query' => 'sebastian bergmann'
  )
);

if (false !== $result) {
  print_r($result);
} else {
  echo 'Query failed.';
}


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to