Mar
13

SimplePie: An amazing and simple way to show RSS Feeds on website using PHP.

Simple pie is simple and easy way to show rss feeds on your web pages. It provides a class and simple lines of code using which you can show feed any where on your web pages-.

Download SimplePie

If you are using codeigniter then, includes above class in your code and call the function lines given below:

1
2
3
4
5
6
7
$this->load->library('simplepie');
$this->simplepie->set_feed_url('http://99points.info/feed/');
$this->simplepie->set_cache_location(APPPATH.'cache/rss');
$this->simplepie->init();
$this->simplepie->handle_content_type();
$data['rss_items'] = $this->simplepie->get_items();
$this->load->view("feed", $data);

Above simple code will get the feeds from provided website and then you can use the feed in to your html page.

Add To Facebook Stumble This Digg This Add To Del.icio.us Add To Reddit Add To Yahoo Add To Twitter


Written by ZeeShaN

ZeeShaN RasooL is a web developer who loves to work in latest technologies to create more interactive dynamic and beautiful web pages.







Enter your Email:

Click Here for Popular

Who I Am

Zeeshan Rasool

Software Engineer - PHP
Lahore - Pakistan

zeeshan(@)99points.info
Skype: zeeshan-rasool
gTalk: zishan.rasool85

Categories

Tags

Comments