|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Why wasn't it done using URIs, HTTP and XML?
A lot of people complained that the Google API would have been better implemented if it was controlled via querystring requests and returned the results in XML.
I agreed, so I created a service (written in pure PHP!) which does exactly that! It's not documented yet, but all you need to do is pass the required parameters (as in the Google documentation) to the URL http://xoomle.dentedreality.com.au/ and see what it returns, then go from there :) Go to the XooMLe website:http://www.dentedreality.com.au/xoomle/ for more information. Cheers Beau |
|
#2
|
|||
|
|||
|
changes in google api?
I beleive there has been changes to the way the google api/SOAP passes the $result array back.
Here is the print_r($result); when i attempted to do this. stdClass Object ( [documentFiltering] => [estimatedTotalResultsCount] => 4740000 [directoryCategories] => Array ( [item] => stdClass Object ( [specialEncoding] => [fullViewableName] => Top/Recreation/Pets/Cats ) ) [searchTime] => 0.151481 [resultElements] => Array ( [0] => stdClass Object ( [cachedSize] => 9k [hostName] => [snippet] => lib-web-<b>cats</b>. library Web pages, online catalogs, and profiles. a directory<br> of over 5,000 libraries worldwide. Maintained by Marshall Breeding <b>...</b> [directoryCategory] => stdClass Object ( [specialEncoding] => [fullViewableName] => Top/Reference/Libraries/Online_Catalogs/Directories ) [relatedInformationPresent] => 1 [directoryTitle] => lib-web-<b>cats</b> [summary] => Searchable database of over 4500 library web sites and online catalogs worldwide. => [url]http://staffweb.library...libwebcats.html [title] => lib-web-<b>cats</b>: Search Results ) as you can see the result array is now a stdClass Object? Does anyone know what this is or why this is happening?
__________________
"Mankind cannot define memory, yet it defines mankind" |
|
#3
|
|||
|
|||
|
Good article and a warning
Very good article. I setup a little search for my "personal site":http://www.burney.ws based on the material in the site (source available)
One thing to be careful for is the order of parameters. They must be in the order listed in the tutorial or it won't work. Furthermore, all parameters must be specified. Evidently, that is a bug in the Google API because it kind of invalidates the reason for using named keys and may even violate the SOAP protocol itself. |
|
#4
|
|||
|
|||
|
display result in different window
Hi,
Please excuse my ignorance, but was wondering what code I need to add to the example search page, so as to get the results displayed in a different frame to which the search was done in ? As you can see I'm very very new to php scripting, and am somewhat lost. Thanks. |
|
#5
|
|||
|
|||
|
Search and Spell Check
1) Search program shows first 10 records. How to display rest matching records?
2) I am getting following ERROR in spell check program. " No Deserializer found to deserialize a 'http://www.w3.org/2001/XMLSchema:nil' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. " Is there something wrong with this code: include("nusoap.php"); $soapclient = new soapclient("http://api.google.com/search/beta2"); Help appreciated. |
|
#6
|
|||
|
|||
|
Re: Search and Spell Check
$params = array(
'key' => 'Google licence key', 'q' => 'Search String', **'start' => 0**, // *i think this is the line that u should change in order to get the for n to n + 10 th results* 'maxResults' => 10, 'filter' => true, 'restrict' => '', 'safeSearch' => true, 'lr' => 'lang_en|lang_fr', 'ie' => '', 'oe' => '' ); |
|
#7
|
|||
|
|||
|
Warning: problems on IE 5.5 and 6
IE 55. sp2 and IE6 as on the date of adding this note have problems with content type gzip and caching http headers. The pages are never cached. I think this combination of http headers can also crash the browser. see http://support.microsoft.com/default.aspx?scid=kb;en-us;321722 |
|
#8
|
|||
|
|||
|
parse error
I have copied the code to my php file and gets the error below.
I am rather new to PHP, so I have not succeeded in finding out what is wrong. Any ideas? Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /index.php on line 19 |
|
#9
|
|||
|
|||
|
Cant use this nuSOAP
May you please explain how this nuSOAP is setup to run, because I am trying to access google and there a NULL results
|
|
#10
|
|||
|
|||
|
More Results Please!! (help!)
Hey guys,
Great article, but i am having trouble getting the next ten results from google using this script. i have created a script that uses php_self in association with a "next ten results" link. This sets the start of the next set of results at 10, or 20 etc. however when i try to run it, it return an error array with this: [faultcode] => SOAP-ENV:Server [faultstring] => Exception while handling service request: com.google.soap.search.GoogleSearchService.doGoogleSearch(java.lang.String,java.lang.String,java.lan g.String,int,boolean,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String) -- no signature match I have checked the variables in different places that its passing to google, but it won't work........ am i doomed to failure? please help thanx in advance. |
|
#11
|
|||
|
|||
|
Using The Google Web APIs With PHP
Using The Google Web APIs With PHP
July 16, 2002 - The Google Web APIs allow developers to build SOAP-based applications driven off Google's unique indexing and search capabilities. And since there are now quite a few PHP classes designed for SOAP transactions over HTTP, integrating the two has never been simpler. This article explains how. Please discuss this article in this thread. You can read the article here . |
|
#12
|
|||
|
|||
|
If you would like to see an article covering a particular topic, please post your request here.
|
|
#13
|
|||
|
|||
|
I get this error:
Quote:
and I am using pretty much the same code - include nusoap and then: [CODE] $query = array('key' => $license_key, 'q' => $q, 'start' => $start, 'maxResults' => $num, 'filter' => 'false', 'restrict' => $restricts, 'safeSearch' => $safe, 'lr' => $lr, 'ie' => '', 'oe' => ''); $soapclient = new soapclient("http://api.google.com/search/beta2"); $result = $soapclient->call("doGoogleSearch", $query, "urn:GoogleSearch", "urn:GoogleSearch"); [CODE] Any thoughts on where the problem is sneaking in? [edit: Added subject line] Emps Last edited by Emperor : July 17th, 2003 at 01:52 PM. |
|
#14
|
|||
|
|||
|
what version of NUsoap are you using?
try creating a soap proxy with the proxy() methods |
|
#15
|
|||
|
|||
|
melonfire: Ahhhhhhhh I downloaded the version from the link here:
http://dietrich.ganx4.com/nusoap/ Should I use the versions here (is there a zip there): http://cvs.sourceforge.net/cgi-bin/...cgi/nusoap/lib/ I don't know what you mean about using proxy() - could you expand on that? Emps |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Using The Google Web APIs With PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|