PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i've PSD SEARCH ENGINE SCRIPT but the script ERROR in search.php
when i tested in XAMPP the script 100% succes but in webhosting ERROR. HELP ME TO FIX THIS CODE PLEASE..
<?
if ($rs = $rss->get("http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query=originurlextension%3Apsd+$search&adult_ok=1&start=$start")) {}
// Go through the list powered by the search engine listed and get the data from each <item>
foreach($rs['items'] as $item) {
// Get the title of result
$title = $item['title'];
// Get the description of the result
$description = $item['description'];
// Get the link eg amazon.com
$urllink = $item['guid'];
include "Class/resulttemplate.php";
echo "\n";
}
?>
Just before the foreach line, print out the contents of $rs, using the PHP function print_r($rs). It should print out an array structure. If it does not, you will have to go back to where $rs was created and find out why not.