My favorites | Sign in
Project Logo
                
Search
for
Updated Jan 29, 2007 by gotfoo
Labels: Phase-Implementation, Phase-Deploy, Featured
Installation  

Installation

Copy the files from the installation package into a folder on your

server. They need to be readible by your web server.
Now include the phpYahoo.php class in your PHP script and
create an instance. For example: $y = new phpYahoo(
<yahoo_appid>
);

The constructor has one argument:

Sample Constructor Code

$y = new phpYahoo(<YAHOO_APPID>);

For Caching Database $y->enableCache("db","mysql://<USERNAME>:<PASSWORD>@<SERVER>/<DATABASE>");

File System $y->enableCache("file","/cache");

Usage

Search using either a single word/phrase `$searchText= $POST'txtSearch'; $results = $y->searchWeb$searchText);

OR using an array of parameters $params = array("query"=>$searchText,"region"=>"us","type"=>"any","results"=>"20"); $results = $y->searchWeb($params);


Sign in to add a comment
Hosted by Google Code