I'm pretty new to using the Google Search API, so I'm not exactly sure what I'm doing and kinda copied this code from somewhere else and changed it to fit my needs.
The problem is that when I connect I keep getting this error:
Fatal error: SoapClient::__call() [<a href='soapclient.--call'>soapclient.--call</a>]: first parameter must be string or null in C:\Program Files\xampp\htdocs\bandfinder\test.php on line 107
line 107 is the line that starts with $data
Any idea why this is happening? Am I not using the __call function correctly?
$params = setParams($id, $site);
$soapclient = new soapclient ('http://api.google.com/GoogleSearch.wsdl');
$data = $soapclient->__call("doGoogleSearch", $params,
"urn:GoogleSearch", "urn:GoogleSearch");