Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter RSS Parser Library
#1

[eluser]hasokeric[/eluser]
http://hasokeric.github.com/codeigniter-rssparser/

Easy to get RSS Feeds, here is an example:
Code:
function get_ars()
{
    // Load RSS Parser
    $this->load->library('rssparser');

    // Get 6 items from arstechnica
    $rss = $this->rssparser->set_feed_url('http://feeds.arstechnica.com/arstechnica/index/')->set_cache_life(30)->getFeed(6);

    foreach ($rss as $item)
    {
        echo $item['title'];
        echo $item['description'];
    }
}




Theme © iAndrew 2016 - Forum software by © MyBB