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.

Syria conflict: US urges 'grace' as Aleppo's fall nears
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The US calls on Syria and Russia to "show a little grace" in Aleppo as they close in on the rebels.
Published: Dec 10, 2016 09:12:18

Gambia President-elect Adama Barrow: Yahya Jammeh must concede
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Gambian President-elect Adama Barrow says president has no authority to reject election results.
Published: Dec 10, 2016 09:12:57

Sunday Times critic AA Gill dies
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Sunday Times restaurant critic AA Gill dies aged 62, three weeks after revealing he had cancer.
Published: Dec 10, 2016 09:12:32

Park Geun-hye impeached: South Korea rally demands full removal
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Opponents of impeached President Park Geun-hye rally in Seoul to demand her definitive removal.
Published: Dec 10, 2016 08:12:17

Nobel Peace Prize: Santos calls for 'rethink' of war on drugs
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Colombia's president receives the Nobel Peace Prize and calls for a "rethink" on the war on drugs.
Published: Dec 10, 2016 07:12:05

Donald Trump denies he will work on The Apprentice while president
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Donald Trump says he will devote "zero time" to the TV show after becoming US president.
Published: Dec 10, 2016 05:12:04

Bulgarian freight train derails and explodes, killing five
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A freight train derails and explodes in a north-east Bulgarian village, killing five people.
Published: Dec 10, 2016 05:12:12

Paris attacks: State of emergency 'to protect elections'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
France's state of emergency must be extended to protect elections next year, PM Cazeneuve says.
Published: Dec 10, 2016 04:12:27

Venezuela seizes Christmas toys to distribute to poor
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Venezuela's consumer agency confiscates four million toys from a company it accuses of hoarding.
Published: Dec 10, 2016 04:12:39

Syria conflict: US to send troops to help seize Raqqa from IS
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US says it is sending 200 troops to help Syrian rebels recapture the IS stronghold of Raqqa.
Published: Dec 10, 2016 04:12:49

Gambia's president 'annuls' election he lost
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Gambian leader Yahya Jammeh has rejected the result of the presidential election held earlier this month, a week after admitting defeat.
Published: Dec 10, 2016 01:12:01

Russia 'intervened to promote Trump' - US intelligence
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US intelligence reportedly believes Russia acted covertly to boost Donald Trump in the election race.
Published: Dec 09, 2016 22:12:03

Trump presidency: Third Goldman executive set to join his cabinet
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Donald Trump is set to pick another Goldman Sachs executive, Gary Cohn, for his cabinet.
Published: Dec 09, 2016 20:12:51

Jennifer Lawrence 'sorry' for Hawaii rock story
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US actress Jennifer Lawrence apologises about scratching her "butt" on sacred rocks in Hawaii.
Published: Dec 09, 2016 16:12:17

Dylann Roof trial: 'I did it,' church gunman says
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The South Carolina man accused of killing nine black church-goers is seen admitting the massacre.
Published: Dec 09, 2016 16:12:09

Madagali: Dozens killed in Nigeria suicide attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
At least 45 people are killed in a suicide attack in the north-eastern Nigerian town of Madagali.
Published: Dec 09, 2016 16:12:06

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