require_once("nusoap.php"); ?>
$key = "00000000000000000000000000000000000"; $start = 0; $parameters = array( "key" => $key, "q" => $Query, "start" => $start, "maxResults" => 5, "filter" => true, "restrict" => "", "safeSearch" => false, "lr" => "lang_en", "ie" => "", "oe" => "" ); $soapclient = new soapclient("http://api.google.com/search/beta2"); // [1] $result = $soapclient->call("doGoogleSearch", $parameters, "urn:GoogleSearch"); $searchtime = $result["searchTime"]; $begin = $start + 1; $end = $start + $parameters["maxResults"]; $total = $result["estimatedTotalResultsCount"]; if ($total > 0) print "Lista dei risultati: