|
Installation
Installation Copy the files from the installation package into a folder on your create an instance. For example:
$y = new phpYahoo( 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"); UsageSearch 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