jwhite68 Posted October 16, 2008 Share Posted October 16, 2008 I am looking for a third party script that can allow me to pull in multiple RSS feeds, and display news headlines on my website. It can link to the main story on the news "owners" site. I came across zfeeder which appears to do the job, but wondered if anyone out there has any comments/feedback on this zfeeder, or can offer any other suggestions that I could look into. Thanks, jon Quote Link to comment https://forums.phpfreaks.com/topic/128751-suggestions-on-news-agrgregator-scripts-for-news-feeds/ Share on other sites More sharing options...
Chicken Little Posted October 17, 2008 Share Posted October 17, 2008 I've used the following (from Peter Lavin's OO book) ?php //point to an xml file $feed = "http://rss.news.yahoo.com/rss/highestrated"; //create object $sxml = simplexml_load_file($feed); foreach ($sxml->attributes() as $key => $value){ echo "<p>RSS $key $value</p>\n"; } echo "<h2>". $sxml->channel->title. "</h2>\n"; echo "<p>\n"; //iterate through items foreach ($sxml->channel->item as $item){ $strtemp = "<a href=\"$item->link\">". "$item->title</a> $item->description<br /><br />\n"; echo $strtemp; } echo "</p>\n"; ?> Quote Link to comment https://forums.phpfreaks.com/topic/128751-suggestions-on-news-agrgregator-scripts-for-news-feeds/#findComment-667613 Share on other sites More sharing options...
jwhite68 Posted October 19, 2008 Author Share Posted October 19, 2008 Thanks for that. I'll give it a try and see how I get on. Jon Quote Link to comment https://forums.phpfreaks.com/topic/128751-suggestions-on-news-agrgregator-scripts-for-news-feeds/#findComment-669328 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.