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.
Homs reporters' deaths condemned
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The killings of two Western reporters in Homs and reported deaths of 60 people across Syria trigger condemnation calls of Bashar al'Assad's regime in the West.
Published: Feb 22, 2012 16:02:10
World leaders to discuss Somalia
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
African and Western leaders are to discuss the future of Somalia, including the threat from terrorism and piracy, at a major conference in London.
Published: Feb 22, 2012 16:02:38
Gillard calls leadership ballot
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Australian Prime Minister Julia Gillard announces a ballot for the leadership of the Labor party to end a damaging split in the organisation.
Published: Feb 22, 2012 15:02:19
US rivals set for Arizona debate
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The four Republican candidates prepare to spar in a crucial TV debate days ahead of two key primaries in the US states of Arizona and Michigan.
Published: Feb 22, 2012 14:02:38
Verdict on Mubarak set for 2 June
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A trial verdict for Egyptian ex-President Hosni Mubarak, accused of ordering the killing of protesters in the revolution that ousted him, is set for 2 June.
Published: Feb 22, 2012 14:02:27
Karzai urges calm over Koran row
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Afghan President Hamid Karzai urges Afghans "not to resort to violence" after protests over the burning of the Koran at a US airbase near Kabul.
Published: Feb 22, 2012 14:02:51
US dismay at IAEA Iranian visit
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The White House expresses disappointment on the barring of UN nuclear inspectors from a site in Iran, calling the visit a "failure" for Tehran.
Published: Feb 22, 2012 14:02:16
Argentina train crash 'kills 49'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A commuter train crash at a station in the Argentine capital, Buenos Aires, kills 49 people and leaves at least 600 injured, officials say.
Published: Feb 22, 2012 13:02:35
NYPD 'spied on' Newark Muslims
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The New York Police Department carried out covert surveillance of Muslims in nearby Newark, New Jersey, police records reveal.
Published: Feb 22, 2012 13:02:53
Strauss-Kahn released by police
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Former IMF head Dominique Strauss-Kahn is released after two days of questioning over an alleged prostitution ring but will be quizzed again next month.
Published: Feb 22, 2012 12:02:59
Western journalists die in Homs
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
American Marie Colvin, a reporter for the UK's Sunday Times, and French photographer Remi Ochlik, are among 20 people killed in the Syrian city of Homs.
Published: Feb 22, 2012 11:02:48
Cherie Blair starts hacking case
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Cherie Blair has started legal proceedings over phone hacking, her solicitor confirms.
Published: Feb 22, 2012 10:02:28
South Sudan expels oil firm boss
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
South Sudan expels the head of a Chinese and Malaysian-owned oil firm following its investigation into Khartoum's "theft" of oil worth $815m (£518m).
Published: Feb 22, 2012 10:02:59
Obama seeks US corporate tax cut
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US President Barack Obama proposes a cut in corporate tax and an end to tax loopholes, as part of his election-year strategy on the economy.
Published: Feb 22, 2012 10:02:09
Somalia militants lose key town
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Ethiopian and Somali troops capture Baidoa, a strategic stronghold of al-Shabab Islamist militants, as the UN approves extra African Union troops for Somalia.
Published: Feb 22, 2012 10:02:14
Nigeria rig 'may burn for months'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A gas-fuelled fire, with flames as high as 5m, may burn for months in waters off the Niger Delta in south-east Nigeria, a Chevron spokesperson tells the BBC.
Published: Feb 22, 2012 08:02:46
<?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($urls, 10);
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>';
}
?>