I tested GoogleAPI with PHP and soap. But got an error message when running the googlesearch.php file(http://127.0.0.1/googlesearch.php).
Fatal error: Call to undefined function: getproxy() in C:\Program Files\Abyss Web Server\htdocs\googlesearch.php on line 9
My OS is Windows XP with lastest Abyss and PHP 4.3.2 installed. I have all soap classes in /htdocs folders with GoogleSearch.wsdl and googlesearch.php
Here is the googlesearch.php file:
<?php require_once('SOAP/Client.php');
$key = 'wzMXCPhQFHIoNdE1l1x/hsudArv9AceZ'; $query = 'cat';
$wsdlurl = './GoogleSearch.wsdl'; $WSDL = new SOAP_WSDL($wsdlurl); $client = $WSDL->getProxy();
$response = $client->doGoogleSearch( $key,$query,0,4, false,'',false,'','','');
foreach($response->resultElements as $result) { echo '<a href="'.$result->URL.'">'; echo $result->title."</a><br><br>\n"; echo $result->snippet."<br><br><br>\n"; }
?>
Please help. By the way, other php file works fine. Thanks in advance.
Daniel
_________________________________________________________________
Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php