Site-Specific Search

In this portion of the chapter we are going to use the Google API and the SOAP extension to create a site-specific search engine. Instead of creating our own index, we'll use the one created by Google. We'll access it via the SOAP protocol. Obviously, this kind of search engine can only be implemented for a site that has been indexed by Google.

Google API

API stands for Application Programming Interface—and is the means for tapping into the Google search engine and performing searches programmatically. You'll need a license key in order to use the Google API, so go to www.google.com/apis and create a Google account. This license key will allow you to initiate up to 1,000 programmatic searches per day. Depending on the ...

Get Object-Oriented PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.