Home > Javascript, PHP > Reading RSS Feeds in php and Javascript table sorting

Reading RSS Feeds in php and Javascript table sorting

Hello there,

Been working with SimplePie recently, its an RSS feed reader/parser that works with PHP. So far the results have been really good, it takes only 4 lines to go and fetch an RSS and return it in a friendly format:

$feed = new SimplePie();
$feed->set_cache_duration($cache_time);
$feed->set_feed_url($URL);
$feed->init();

I’ve not seen where the cache is sent yet OR what it actually caches but seems pretty easy.

I started using the JQuery tableSorter utility yesterday also. It is good enough, not as good as I’d like though. I had to manually resize some of the images that are used within the tags as they were leaving too much space which caused the headings to move onto a third line. Also I don’t know if they can use filters yet or if its possible to run ajax on the table. Anyway though getting the table sorter working is pretty straight forward

Get the full release from http://tablesorter.com and place jquery-latest.js, jquery.tablesorter.js in somewhere that can be read by your page(I’m using ColdFusion). Place the following code in your header:






Once done I just made my table:

DATA STUFF
Header 1 Header 2

That worked for me anyways!

Apart from that I’ve gone back onto using Asterisk recently again and will be doing a bit more PHP AGI in the near future so expect to hear some more about that!

Categories: Javascript, PHP Tags:
  1. No comments yet.
  1. No trackbacks yet.

Anti-Spam Protection by WP-SpamFree