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 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.