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 die as dinghy sinks off Libya
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
At least 10 people drown when their inflatable boat capsizes, as Italy raises to the surface a boat that sank with the loss of 700 lives.
Published: Jun 30, 2016 04:06:25

Ivory Coast's 'hero' professor backs student mothers
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
An Ivory Coast professor, photographed carrying a student's baby in class in a widely-shared image, says being a mother should not stop women getting an education.
Published: Jun 30, 2016 04:06:37

Istanbul airport attack: Turkish police in anti-IS raids
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Turkish police carry out raids against suspected IS militants following the attack on Istanbul's airport, detaining at least 13 people.
Published: Jun 30, 2016 04:06:51

Rodrigo Duterte sworn in as Philippines president
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The tough-talking former mayor of Davao, Rodrigo Duterte, is sworn in as the president of the Philippines, after a landslide election win.
Published: Jun 30, 2016 03:06:47

Taliban attack on police cadets near Kabul kills dozens
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Taliban bombers attack an Afghan police convoy outside Kabul, killing at least 30 people and wounding 50 others, officials say.
Published: Jun 30, 2016 03:06:50

Nigeria's Elechi Amadi, author of The Concubine, dies
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Nigerian writer Elechi Amadi, who is famous for the novel The Concubine, dies of an undisclosed illness at the age of 82.
Published: Jun 30, 2016 03:06:38

Israeli girl stabbed to death by Palestinian inside bedroom
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
A 13-year-old Israeli girl is stabbed to death by a Palestinian inside her bedroom at a Jewish settlement in the occupied West Bank.
Published: Jun 30, 2016 03:06:20

Shock as Gove bids to lead Tories and UK
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Justice Secretary Michael Gove and Home Secretary Theresa May enter the race to be the next leader of the Conservative Party and prime minister.
Published: Jun 30, 2016 03:06:16

Cyclist in northern US killed by grizzly bear
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A grizzly bear attacks and kills a cyclist just outside Glacier National Park, police in the northern US state of Montana say.
Published: Jun 30, 2016 03:06:23

Oscars push for more gender and ethnical diversity
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Oscar organisers invite a record number of new members to vote in the next Academy Awards, in response to sharp criticism about lack of diversity.
Published: Jun 30, 2016 02:06:08

US election: Michael Sandford who 'wanted to shoot Trump' charged
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A British man, who allegedly snatched a police officer's gun at a rally for Donald Trump, has been charged, but not with plotting to kill him.
Published: Jun 30, 2016 01:06:19

Alvin Toffler, futurologist guru, dies at 87
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Alvin Toffler, the author of Future Shock and other works predicting social, economic and technological change, dies at 87.
Published: Jun 30, 2016 01:06:00

Brexit: Obama warns on global growth after UK vote
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US President Barack Obama says that the British vote to leave the European Union raises "longer-term concerns about global growth".
Published: Jun 29, 2016 23:06:18

US compensates Cameroon family for child killed by UN car
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US has compensated the family of a Cameroon boy who was struck and killed by a vehicle in UN Ambassador Samantha Power's motorcade.
Published: Jun 29, 2016 19:06:01

Zika-damaged babies could appear normal, says study
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Babies with brain abnormalities caused by the Zika virus could still appear normal, according to the largest study of affected babies.
Published: Jun 29, 2016 19:06:28

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