cURL / Mailing Lists / curl-and-php / Single Mail


Searching google result

From: jigen <>
Date: Mon, 17 Sep 2007 21:57:47 -0700 (PDT)

i have here a function(easy function) that search
google for a certain keyword using curl library what i
want is i want to return the top 5 url of the search
result thats what i dont know how to do it

function curl_google($keyword){

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FILETIME, true);
$data = curl_exec($ch);


Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
Received on 2007-09-18