File: |
GooglesearchClass |
Role: |
Class source |
Content type: |
text/plain |
Description: |
Google search Class |
Class: |
Google Domain Search Result Integration
Search a site and retrieve results from Google |
Author: |
By Jose Johnson Pallikkathyil |
Last change: |
A small modification is added to the class
changes:
1. The function "fetchContent" is modified.
2. A new function "fetchContentFromURL" is added into the class.
3. A new function "fetchContentFromURLbyCURL" is added into the class.
Why changes?
Earlier I was simply fetching the contents from a google search page by simply calling a google search url and then taking the result of the search page into a string and then processing. This function will fail if your server doesn't allow fetching contents from an external server.
so a new function "fetchContentFromURLbyCURL" is implement which uses CURL to fetch the contents.
Try this and let me know. |
Date: |
13 years ago |
Size: |
10,955 bytes |
|
|
|