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.

Twin corruption inquiries at Fifa
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Two criminal inquiries into corruption at football's world governing body Fifa are under way, as seven high-ranking officials are arrested in Zurich.
Published: May 27, 2015 05:05:21

Hamas accused of Gaza rights abuses
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Hamas committed serious human rights abuses including killings and torture of Palestinian civilians in 2014, Amnesty International says.
Published: May 27, 2015 04:05:27

Madagascar MPs vote to sack leader
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Parliamentarians in Madagascar vote to impeach President Hery Rajaonarimampianina in a surprise move.
Published: May 27, 2015 03:05:33

No let-up in massive India heatwave
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Heatwave conditions continue to sweep India where more than 1,100 people have died in the past week, officials say.
Published: May 27, 2015 03:05:29

WW2 bomb prompts Cologne evacuation
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Some 20,000 people in the German city of Cologne are forced to leave their homes as authorities defuse a one-tonne bomb from World War Two.
Published: May 27, 2015 03:05:33

Arrests over Pakistan 'fake degrees'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Pakistani investigators detain the head of a global internet technology firm suspected of an alleged multi-million dollar fraud selling fake degrees online.
Published: May 27, 2015 02:05:02

Irish smacking law violates charter
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The European Committee of Social Rights rules that the Republic of Ireland has violated a European charter by not banning all forms of corporal punishment, including parents smacking their children at home.
Published: May 27, 2015 01:05:19

Southern US flooding toll rises
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
At least 17 people are killed and dozens injured in the US states of Oklahoma and Texas following record rainfall over the weekend.
Published: May 26, 2015 23:05:42

EU to give migrant quota plan details
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The EU is to announce details of controversial plans to relocate thousands of migrants who have reached Europe from Africa and the Middle East.
Published: May 26, 2015 22:05:00

China arrests over stolen artefacts
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Chinese police take 175 people into custody and recover stolen artefacts worth more than 500m yuan ($80m; £52m), calling it the biggest operation of its kind.
Published: May 26, 2015 22:05:55

Gunmen die in Taliban Kabul attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Four militants who attacked a guesthouse in Kabul's diplomatic quarter die after a gun battle lasting at least six hours, police say.
Published: May 26, 2015 22:05:58

Violent Baltimore sees fewer arrests
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The number of arrests made by Baltimore police in May has plummeted as shootings and homicides have dramatically increased.
Published: May 26, 2015 18:05:06

Obama loses immigration appeal
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US court rules President Barack Obama's plans to protect almost five million illegal immigrants from deportation must stay on hold.
Published: May 26, 2015 15:05:59

Libya PM 'escapes assassination bid'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Libyan Prime Minister Abdullah al-Thinni says he has survived an assassination attempt after his car was attacked by gunmen in the eastern city of Tobruk.
Published: May 26, 2015 14:05:12

Strict oversight for Cleveland police
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Cleveland police department, which has been criticised for aggressive tactics against African Americans, agrees to strict US reforms.
Published: May 26, 2015 13:05:40

India heatwave toll passes 1,000
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The death toll in the heatwave sweeping India passes 1,000, with temperatures nearing 50C (122F) in some areas.
Published: May 26, 2015 12:05:14

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