Errata

Google Hacks

Errata for Google Hacks

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 33
code for "Custom Google Search Form"

as published:
<select name="as_sitesearch"></options>

should be:
<select name="as_sitesearch">

Anonymous   
Printed Page 66
4th line from the bottom

"<code>/images"
should be:
"/images"

Anonymous   
Printed Page 114
in The Code, 15 lines down

The line:
$ARGV
or die qq{usage: perl google_dir.pl "{query}" < structure.rdf.u8
};
Should be:
$ARGV[0]
or die qq{usage: perl google_dir.pl "{query}" < structure.rdf.u8
};

Anonymous   
Printed Page 160
code error (Hack 55), top of the page

The content of nusoap.php and also Google services has changed such that this code
always produces "no results", i.e. an error. The code at the top of the page must
read as follows:

$soapclient = new soapclient("http://api.google.com/search/beta2");

A local copy of the GoogleSearch.wsdl file does nothing, and the URL included in the
book also does nothing - I've tested both methods. In order to get the code to work
on a local copy of the .wsdl file, you'd have to alter the nusoap class, or at least
that's my initial understanding of the problem. I haven't yet read through the 4000-
plus lines of code in nusoap.php. I will test it again and make sure that error
reporting is active.

Anonymous