Sometimes you want to put other sites RSS on your site. Putting RSS feeds on your site is an excellent way to keep your site dynamic and fresh with new content – and hopefully keep people coming back to your site.
patRSS is a PHP Application Tool that allows you to display the contents of an RSS feed on any PHP page in your site.
Why should I use patRSS?
If you’d like to publish news on your PHP driven site, patRSS is the easiest way to do it. Just create a new object, hand over the URL of the RDF file and request the information you want to display.
Sample Usage:
| <?PHP | ||
| 2 | include( "include/patRSS.php" ); | |
| 3 | $patRss = new patRSS( "http://www.php-tools.net/rdf/" ); | |
| 4 | $items = $patRss->getItems( 10 ); | |
| 5 | echo "<pre>"; | |
| 6 | print_r( $items ); | |
| 7 | echo "</pre>"; | |
| 8 | ?> |
| 2.5 |
Ruhani Rabin
Be First To Comment
Related Post
Leave Your Comments Below