Forum Moderators: open
Can anyone please tell me how to install Magpierss and in which file/how to configure RSS settings etc?
Readme has a very little information
I have tried to insert this into my php file
require_once(rss_fetch.inc);
$url = $_GET['url'];
$rss = fetch_rss( $url );
echo "Channel Title: " . $rss->channel['title'] . "<p>";
echo "<ul>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
echo "<li><a href=$href>$title</a></li>";
}
echo "</ul>";
but got this error
Warning: MagpieRSS: fetch_rss called without a url in /home/htdocs/web1/html/domain.com/magpierss/rss_fetch.inc on line 238
I'm a real newbie to RSS and I don't understand what's your problem. But, I find this tread very usefull to me. May be you can try it out and see whether it helps anot.
[webmasterworld.com...]
All the best
lowkei
$url = $_GET['url'];
This line in your code means you have to call the script with a valid url-paramter, e.g. like
[yourdomain.com...]
Did you do this? Instead passing the parameter with GET you could add the desired feed URL right in the script using
$url = "http://rss.news.yahoo.com/rss/topstories";