- INSTALL
Just put the class_google.php file in your include_path (see php.ini include path section if you are not sure)
- USES:
I'll try to show you this class and how To set up a search with exemples:
- 1: Searching phpclasses.org in title:
- to declare a google object:
$google = new google();
- set up parameters: search sentence phpclasses.org in title
$google->setSentence('phpclasses.org');
setSentence('phpclasses.org');
?>
- set up parameters: search sentence phpclasses.org in title
$google->setPosition('title');
setPosition('title');
?>
- get Results
getResults(); ?> Results found for query (getLink()?>)
- 2: Searching phplibrairies:
- to declare a google object:
$google = new google();
- set up parameters: search PHPLIBRAIRIES
$google->setSentence('php librairies');
setSentence('php librairies');
?>
- get Results
getResults(); ?> Results found for query (getLink()?>)
- 2: Searching PHP in pdf files:
- to declare a google object:
$google = new google();
- set up parameters: search php
$google->setKeywords(array('php'));
setKeywords(array('php'));
?>
- set up parameters: in pdf files
$google->setfiletype('pdf');
setfiletype('pdf');
?>
- get Results
getResults(); ?> Results found for query (getLink()?>)
Contact or more informations phplibrairies