Get Adobe Flash player

Navigation

User login

Show Multiple RSS Feeds

Items in the RSS Feed

Display a linked title to each item in the RSS feed

Behind the scenes, this is fetching the RSS feed over HTTP, parsing it, and then creating a list of linked items.

Emergency declared over Canada city fire
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A state of emergency is declared in Canada's Alberta province, after a wildfire forces all 88,000 residents of Fort McMurray to flee their city.
Published: May 04, 2016 19:05:43

N Carolina LGBT law 'violates rights'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US Justice Department tells North Carolina that its law limiting protections for LGBT people violates national civil rights laws.
Published: May 04, 2016 18:05:39

Last Trump rival quits Republican race
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
John Kasich ends his campaign for the Republican nomination, leaving Donald Trump as sole candidate in his party's presidential race.
Published: May 04, 2016 16:05:17

Canada wildfire threatens entire city
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A "catastrophic" wildfire that has forced the evacuation of all 88,000 people from Fort McMurray could destroy much of the Canadian city, officials warn.
Published: May 04, 2016 16:05:36

Future of Turkish PM Davutoglu in doubt
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Turkey's ruling party will hold an extraordinary congress in the coming weeks, media say, amid speculation over the future of PM Ahmet Davutoglu.
Published: May 04, 2016 15:05:07

Obama drinks water in crisis-hit Flint
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
President Barack Obama drinks filtered water on a visit to the Michigan city of Flint, which has been wracked by a public health crisis.
Published: May 04, 2016 14:05:11

Syria truce 'extended to Aleppo'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A partial, shaky truce between Syria and non-jihadist rebels is extended to embattled Aleppo, after US and Russian pressure.
Published: May 04, 2016 14:05:59

Prince's team called addiction doctor
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Prince's team requested emergency support from a leading addiction specialist just a day before the singer died, the doctor's lawyer reveals.
Published: May 04, 2016 12:05:25

SA parliament brawl over Zuma heckling
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A brawl breaks out in the South African parliament as MPs from the opposition EFF party are expelled for heckling President Jacob Zuma.
Published: May 04, 2016 11:05:51

Embryo study shows 'life's first steps'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Scientists have developed a technique to grow human embryos in the lab past the point they normally implant in the womb.
Published: May 04, 2016 11:05:48

Mother of miracle baby dies in rubble
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The mother of a baby girl who was miraculously rescued from a collapsed building in Nairobi is found dead in the rubble.
Published: May 04, 2016 10:05:51

Apple loses fight over 'iPhone' in China
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A Chinese company is free to use the name "IPHONE" on its handbags and leather goods after Apple loses a trademark court ruling in China.
Published: May 04, 2016 10:05:31

Kenya's 'gay anal tests' challenged
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Two men allegedly forced to undergo anal examinations by Kenyan police to prove they were homosexual launch a legal challenge against the practice.
Published: May 04, 2016 09:05:09

EU plans fines for refusing refugees
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Reforms to EU asylum rules planned by the European Commission would see financial penalties for countries refusing to take in asylum seekers.
Published: May 04, 2016 08:05:52

South Africa protesters torch schools
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Protesters burn 13 schools in South Africa's northern Limpopo province in a violent dispute over district boundaries, police say.
Published: May 04, 2016 06:05:02

The Code:

<?php
  $urls 
= array("http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml",
                
"http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml");
  
$feeds = array();
  
$feeds _querypath_examples_show_multiplerss($urls10);
    
  foreach(
$feeds as $date => $item) {
    
$out .= '<p>' l($item['title'], $item['link']) 
            .
' <br />From: ' $item['url'
            .
' <br />' $item['desc'
            .
' <br />Published: ' date("M d, Y H:m:s"$date) . '</p>';
  }
  
?>

References:

The QueryPath API