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.

Migrants refuse to leave Hungary train
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Scuffles break out west of Budapest as police try to force migrants off a train at a refugee camp, while European leaders wrangle over the growing refugee crisis.
Published: Sep 03, 2015 12:09:21

US clerk jailed in gay marriage dispute
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US judge orders a Kentucky official jailed for contempt of court after she has repeatedly refused to issue marriage licences to gay couples.
Published: Sep 03, 2015 12:09:53

Syrian boy's father tells of drowning
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The father of a three-year-old Syrian boy found drowned on a beach in Turkey tells the BBC of the family's fatal voyage trying to reach Europe.
Published: Sep 03, 2015 12:09:09

'Sext' to boss ends US man's job offer
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A Chicago area man loses a job offer after accidentally sending nude pictures of himself to a manager.
Published: Sep 03, 2015 12:09:55

Trump 'not to run as independent'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US presidential hopeful Donald Trump agrees not to run as an independent candidate if he loses the Republican nomination for the 2016 presidential elections.
Published: Sep 03, 2015 12:09:22

Judge overturns Tom Brady suspension
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US judge has overturned a four-game suspension against National Football League (NFL) quarterback Tom Brady, calling the league's disciplinary process "fundamentally unfair".
Published: Sep 03, 2015 11:09:11

Wing debris 'certainly' from MH370
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
French prosecutors say "with certainty" that a wing part found on Reunion Island in July came from missing flight MH370.
Published: Sep 03, 2015 11:09:03

Dutch serviceman 'may have joined IS'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A 26-year-old air force sergeant is suspected of being the first serving member of the Dutch armed forces to have joined IS in Syria.
Published: Sep 03, 2015 11:09:18

China parade marks victory over Japan
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
China has held a lavish parade in Beijing to mark the defeat of Japan in World War Two, showcasing its military on an unprecedented scale.
Published: Sep 03, 2015 11:09:13

Canada denied Syrian boy asylum
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A relative of the three-year-old Syrian boy whose body was found washed up on a beach in Turkey says his family had been denied asylum in Canada in June.
Published: Sep 03, 2015 10:09:51

Twin blasts kill 19 in Cameroon
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
At least 19 people are killed in two bomb attacks in the far north of Cameroon, where Nigeria's Boko Haram militants are active, officials say.
Published: Sep 03, 2015 09:09:33

Egypt jails belly dancers for videos
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
A court in Egypt sentences two belly dancers to six months each in jail for inciting debauchery over their scantily-clad performances in videos.
Published: Sep 03, 2015 09:09:35

Congo's 'Terminator': I'm not a killer
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Former Congolese rebel leader Bosco Ntaganda tells the International Criminal Court he is a soldier, not an "infamous killer".
Published: Sep 03, 2015 09:09:56

King cobra escapes from Florida home
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Florida wildlife officials are on the hunt for an 8-foot-long (2.4m) king cobra snake that has escaped from an Orlando home.
Published: Sep 03, 2015 08:09:54

UK reporters freed from Turkish jail
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Two Vice News British journalists arrested in Turkey on terror charges are being released from prison, but their translator remains in custody.
Published: Sep 03, 2015 08:09:57

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