mirror of
https://github.com/php/presentations.git
synced 2026-03-26 16:42:20 +01:00
24 lines
421 B
PHP
24 lines
421 B
PHP
<?php
|
|
include_once 'SOAP/Client.php';
|
|
|
|
$key = 'xxxxxxxxxxxxxxxx'
|
|
|
|
$query = array(
|
|
'key' => $key,
|
|
'q' => 'link:metallo.scripps.edu',
|
|
'start' => 0,
|
|
'maxResults' => 10,
|
|
'filter' => true,
|
|
'restrict' => '',
|
|
'safeSearch' => false,
|
|
'lr' => '',
|
|
'ie' => '',
|
|
'oe' => ''
|
|
);
|
|
|
|
$wsdl = new SOAP_WSDL('GoogleSearch.wsdl');
|
|
$client = $wsdl->getProxy();
|
|
$result = $client->doGoogleSearch($query)
|
|
print_r($result);
|
|
?>
|