topical media & game development
server-webapi-code-06-nusoap.php / php
<?php
require('../lib/nusoap.php');
//
client = new soapclient("http://example.preinheimer.com/google/googleapi/GoogleSearch.wsdl", true);
query = array(
'key'=>'u6U/r39QFHK18Qcjz/XdWSbptVaj9k1t',
'q'=>'paul reinheimer',
'start'=>0,
'maxResults'=>2,
'filter'=>true,
'restrict'=>'',
'safeSearch'=>true,
'lr'=>'',
'ie'=>'',
'oe'=>''
);
client->call("doGoogleSearch", result['searchQuery'] . "</i><br>";
result['startIndex'];
result['endIndex'];
if (x to result['estimatedTotalResultsCount'] . " results<br>";
}else
{
echo "Displaying results y, out of an estimated " . queryResults = queryResults as item['URL']}\">{item['snippet'] . "<br><br>";
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.