Create RSS Feed Reader Using PHP and Jquery
In this tutorial, you can create simple RSS reader with help of PHP and Jquery.
RSS reader will fetch the latest contents from the webpage using the feed url.
To get the RSS (Rich Site Summary), you will need to provide the feed url. When the form is submitted the feed url is sent to rssreader.php via http post method and show the results.
I am using zRss feed and vticker jquery plugins that fetches and sliding the latest contents from the website.

Demo Code
Add Files:-
1. index.php
2. rssreader.php
3. jquery.rssfeed.css
4. jquery.rssfeed.min.js
5. jquery.vticker.js
index.php
RSS feeds RSS Reader
rssreader.php
RSSFeed - RSS feeds with vticker animation RSS Feeds
/', $output, $matches); //regular expression to find the feed url $feedurl=$matches[1]; ?>
jquery.rssfeed.css
@charset "UTF-8"; /* * RSS Ticker Styling * */ body { margin: 1em 3em; font-family: Tahoma, Genevam, sans-serif; } .rssFeed { font-family: Arial, Helvetica, sans-serif; font-size: small; width: 400px; margin-bottom: 2em; } .rssFeed a { color: #444; text-decoration: none; } .rssFeed a:hover { color: #000; text-decoration: underline; } .rssHeader { padding: 0.2em 0; } .rssBody { border: 4px solid #666; } .rssRow h4, .rssRow p, .rssRow div { margin: 0; padding: 0.5em; } #ticker1 .odd { background-color: #e8e8fc; } #ticker1 .even { background-color: #d4d4e8; } .rssError{ color:#FF0000; font-weight:bold; text-align:center; background-color:#CCCCCC; line-height:45px; }
jquery.rssfeed.min.js
(function(l){l.fn.rssfeed=function(b,h,w){h=l.extend({limit:10,offset:1,header:!0,titletag:"h4",date:!0,dateformat:"datetime",content:!0,snippet:!0,media:!0,showerror:!0,errormsg:"",key:null,ssl:!1,linktarget:"_self",linkredirect:"",linkcontent:!1,sort:"",sortasc:!0,historical:!1},h);return this.each(function(z,q){var u=l(q),f="";h.ssl&&(f="s");u.hasClass("rssFeed")||u.addClass("rssFeed");if(null==b)return!1;0'+b.title+"
- ';for(f=e.offset;f
"+a+"
");e.content&&(g=e.snippet&&""!=g.contentSnippet?g.contentSnippet:g.content,e.linkcontent&&(g=''+g+""),j[d].html+=""+g+"
");if(e.media&&0Media files
- ';for(g=0;g
Leave a Reply