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.

Indiana to 'fix' law on religion
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The governor of Indiana has said that he wants state lawmakers to "fix" a religious freedom law that has created a national outcry by the end of this week.
Published: Mar 31, 2015 15:03:54

Buffett 'wouldn't raise US rates'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The billionaire investor, Warren Buffett, says if he ran the US Federal Reserve, he wouldn't raise interest rates significantly.
Published: Mar 31, 2015 15:03:55

Boston bombing defence finishes
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The defence in the Boston Marathon bombing trial rests its case against defendant Dzhokhar Tsarnaev, charged with 30 counts related to the attack.
Published: Mar 31, 2015 15:03:38

Opposition wins Nigeria election
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Muhammadu Buhari wins Nigeria's presidential poll, in the country's first ever election victory by the opposition.
Published: Mar 31, 2015 14:03:38

Amazon launches home ordering kit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
In an attempt to attract more household shoppers, Amazon unveils a button for replenish items such as washing powder and razors.
Published: Mar 31, 2015 14:03:46

Bloody end to Turkey hostage crisis
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A Turkish prosecutor and two gunmen who took him hostage have been killed after a shootout in Istanbul, officials say.
Published: Mar 31, 2015 14:03:24

Lufthansa knew of co-pilot depression
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The Alps crash co-pilot Andreas Lubitz informed Lufthansa's flight school in 2009 of a "serious depressive episode", the airline says.
Published: Mar 31, 2015 14:03:49

VIDEO: Joy and elation on Nigeria streets
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Muhammadu Buhari's win in Nigeria's presidential election has triggered mass celebration in the northern city of Kano.
Published: Mar 31, 2015 13:03:58

Evidence links China to GitHub attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Security researchers say "innocent" internet users are unwittingly carrying out the attack, most likely hijacked by the Chinese government.
Published: Mar 31, 2015 13:03:32

Libya Tripoli-based Islamist PM fired
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
MPs remove Omar al-Hassi as head of Libya's Islamist-backed alternative government in Tripoli amid allegations of financial irregularities.
Published: Mar 31, 2015 12:03:09

Statement 'expected from Iran talks'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Nuclear talks between world powers and Iran could go on past a midnight deadline, US officials say, as delegates prepare to issue a general statement.
Published: Mar 31, 2015 12:03:04

Mining massacre report given to Zuma
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The findings of an inquiry into the killings of 34 workers at the Marikana mine in South Africa are given to President Jacob Zuma.
Published: Mar 31, 2015 11:03:34

Iraqi forces in 'major Tikrit push'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Iraqi forces have made major advances against Islamic State (IS) in Tikrit - retaking the government headquarters, officials say.
Published: Mar 31, 2015 10:03:06

Turkey hit by massive power cut
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A huge power cut hits several cities in Turkey, including Istanbul's public transport network.
Published: Mar 31, 2015 10:03:21

Donors pledge billions for Syria
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Donors at a UN conference pledge $3.8bn for victims of Syria's civil war, termed "the worst humanitarian crisis of our time".
Published: Mar 31, 2015 09:03:21

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