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.

IS conflict: Iraq launches ground offensive in Tal Afar
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The northern city, one of the last held by IS, has been a target since the fall of Mosul in July.
Published: Aug 20, 2017 10:08:17

Barcelona attack: Spain terror cell had 120 gas canisters
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Jihadists planned for six months to fill three vans and carry out deadly attacks, police say.
Published: Aug 20, 2017 10:08:32

Leo Varadkar meets Justin Trudeau during visit to Canada
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The Taoiseach (Irish Prime Minister) begins a three-day visit to Canada.
Published: Aug 20, 2017 09:08:13

British boy among Barcelona attack dead
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Julian Cadman, a seven-year-old dual British-Australian national, was one of 13 people killed, it is confirmed.
Published: Aug 20, 2017 09:08:49

Syria war: Rocket 'hits Damascus trade fair'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The event is being held for the first time in five years. with reports speaking of five deaths.
Published: Aug 20, 2017 08:08:55

BBC Pidgin: Meet the team
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Meet the team bringing the BBC to tens of millions of Pidgin speakers in West and Central Africa.
Published: Aug 20, 2017 08:08:48

Aryana Sayeed: Kabul concert goes ahead despite threats
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Aryana Sayeed, known to fans as Afghanistan's Kim Kardashian, sang to hundreds of delighted fans.
Published: Aug 20, 2017 08:08:05

Philippines drug campaign condemned by senior Catholics
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
It comes as questions are raised over the killing of a teenager by police during a week of violence.
Published: Aug 20, 2017 07:08:02

Grace Mugabe: South Africa grants immunity despite assault claim
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Robert Mugabe's wife is back in Zimbabwe despite allegations of an assault at a Johannesburg hotel.
Published: Aug 20, 2017 06:08:49

Dogan Akhanli: Spain grants Erdogan critic conditional release
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The German-Turkish writer must stay in Madrid while Turkey considers requesting his extradition.
Published: Aug 20, 2017 06:08:33

Lost WW2 warship USS Indianapolis found after 72 years
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The warship's sinking, weeks before WW2's end, remains the worst US naval loss at sea in history.
Published: Aug 20, 2017 04:08:50

US comedian and activist Dick Gregory dies aged 84
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The family of Dick Gregory, who satirised racism with his stand-up, announce his death aged 84.
Published: Aug 19, 2017 22:08:14

Oxford University employee charged with Chicago murder
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Oxford University employee Andrew Warren is one of two men charged with killing a 26-year-old hair stylist.
Published: Aug 19, 2017 19:08:35

Boston march against right-wing rally draws thousands
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Anti-racism protesters converge on the "Free Speech" rally featuring right-wing speakers.
Published: Aug 19, 2017 19:08:31

Usakos, a community scarred by apartheid
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A new exhibition of photographs shows how apartheid changed this small Namibian town.
Published: Aug 19, 2017 17:08:37

Nigerian President Muhammadu Buhari returns from UK
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
The Nigerian leader spent three months in the UK seeking treatment for an unspecified illness.
Published: Aug 19, 2017 12:08:14

Trumps to skip Kennedy honours to avoid 'distraction'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The couple will not attend the Kennedy Center Honors to avoid political distraction, officials say.
Published: Aug 19, 2017 08:08:48

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