File: GooglesearchClass

Recommend this page to a friend!
  Classes of Jose Johnson Pallikkathyil  >  Google Domain Search Result Integration  >  GooglesearchClass  
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
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: 10 years ago
Size: 10,955 bytes

You need to be a registered user and login to get this file.

1,586,560 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.