HELP ME TO FIX THIS CODE
Posted: Fri Dec 24, 2010 2:55 am
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..
ERROR CODE:
this is link to download PSD SEARCH ENGINE SCRIPT if you want to test it: http://www.uploadhappy.com/files/1TFHZH ... engine.rar
HELP ME TO FIX IT PLEASE.. THANK YOU
when i tested in XAMPP the script 100% succes but in webhosting ERROR. HELP ME TO FIX THIS CODE PLEASE..
Code: Select all
<?
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";
}
?>
Code: Select all
Warning: Invalid argument supplied for foreach() in /home/vol2/xxxxxx.com/xth_xxxxx/xxxx-xxx.co.cc/htdocs/search.php on line 56
HELP ME TO FIX IT PLEASE.. THANK YOU