The HTML generated by this example is the BBC News RSS feed displayed belown on the right hand side of the page.Charlottesville: Emergency state over US far-right rally The rally in Charlottesville, Virginia, is expected to be the largest of its kind in years 13 August 2017, am North Korea: China urges Trump not to worsen situation China wants the US and North Korea to show restraint as a war of words escalates.Think about it....every time a web surfer opens their RSS reader to get the headlines for all the sites they monitor, they'll also see your site's updates. Without RSS, users will have to check your site daily for new updates. With an RSS feed (RSS is often called a News feed or RSS feed) they can check your site faster using an RSS aggregator (a site or program that gathers and sorts out RSS feeds).After that it's just a matter of extracting the relevant data from the array returned by get Raw Output(); extract($feeddata['RSS']['CHANNEL'], EXTR_PREFIX_ALL, 'rss'); // display leading image if(isset($rss_IMAGE) && $rss_IMAGE) // display feed title echo "\n"; // display feed items $count = 0; foreach($rss_ITEM as $itemdata) // display copyright information echo " As you can see from the code comments, this snippet displays first the image associated with the feed (as a link) followed by the feed title and a limited number of items.
Again, this is just an example of what you can do using our PHP classes (there's also code for an Atom Feed Reader) to include external feeds.
The parameters at the top define the feed source, how many items to display and where and for how long to keep a local cached version of the data.
Here are some benefits of using RSS: Choose your news With RSS you can choose to view the news you want, the news that interest you and are relevant to your work.
Remove unwanted information With RSS you can (finally) separate wanted information from unwanted information (spam)!