#Use the NuSoap php library require_once('nuSOAP/nusoap.php'); #set parameters $parameters = array( 'key'=>'m0nmJOdQFHLqAyh+2I5xIYzZ2f3kyFPg', 'q'=>'lee leong', #query here #'q'=>$HTTP_GET_VARS['query'], 'start'=>'0', 'maxResults'=>'10', 'filter'=>'false', 'restrict'=>'', 'safeSearch'=>'false', 'lr'=>'', 'ie'=>'latin', 'oe'=>'latin' ); #Create a new soap client, feeding it to GoogleSearch.wsdl on Google's site $soapclient = new soapclient('http://api.google.com/GoogleSearch.wsdl','wsdl'); #query Google $results = $soapclient->call('doGoogleSearch',$parameters); #print_r($results); #print results if (is_array($results['resultElements'])) { print "