In this sample file I will show the PHP code used to fetch the feeds, along with the actual output.
To liven up the look, you can put your output inside a table, or use stylesheets with the html templates
to improve the look of the feeds.

Version 0.4.3 added the ability to start showing feeds from a specified offset. As opposed to always showing feeds from the first, you can specify to start at a higher feed. Usage is shown below in the second example.

The prototype for the function to show the feeds is:
function rss_parser(string $url [, int $numtoshow = 10 [,string $html = "" [, bool $update = FALSE [, int $offset = 1]]]])

'Stack Clash' Linux Flaw Enables Root Access. Patch Now
Former Slashdot Contributor Jon Katz Believes He Can Talk To Animals
Phoronix Announces '2017 Linux Laptop Survey'
The People GoFundMe Leaves Behind
Sci-Hub Ordered To Pay $15 Million In Piracy Damages

<?php
require_once "./rss_fetch.php";  //Include the class code
$url "http://slashdot.org/rss/index.rss";  //RSS Feed URL
$show 5;  //How many headlines to show
$html "<a href='#{link}' target='_new'>#{title}</a><br />";  //HTML Template
$update 1;  //The feed should update from this script
$rss = new rss_parser($url$show$html$update);  //Parse and Display
?>


Couldn't open rss feed in /images/apps/rss.php
No item elements found in rss feed.
<?php
require_once "./rss_fetch.php";
$url "http://z.about.com/6/g/wine/b/rss2.xml";
$show 3;
$html "<a href='#{link}' target='_new'>#{title}</a><br />#{description}<br /><br />";
$update 1;
$start 5;
$rss = new rss_parser($url$show$html$update$start);
//The optional 5th paramter tells which item to show feeds from.  So the 5 says to start from the 5th feed item.
 
?>


No item elements found in rss feed.
Yahoo - 301 Moved Permanently

The document has moved here.

Please check the URL for proper spelling and capitalization. If you're having trouble locating a destination on Yahoo, try visiting the Yahoo home page or look through a list of Yahoo's online services. Also, you may find what you're looking for if you try searching below.

advanced search |

Please try Yahoo Help Central if you need more assistance.

Copyright © 2017 Yahoo Inc. All rights reserved. Privacy Policy - Terms of Service



<?php
require_once "./rss_fetch.php";
$url "http://rss.cnn.com/rss/cnn_tech.rss";
$show 5;
$html "<a href='#{link}' target='_new'>#{title}</a> <font size='1'>Added: #{pubDate}</font><br />";
$update 1;
$rss = new rss_parser($url$show$html$update);
?>