Skip to main content

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.

French woman officer dead in knife attack on French police
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The unarmed female officer was stabbed in the neck in the entrance hall of Rambouillet police station.
Published: Apr 23, 2021 14:04:42

Idriss Déby: Thousands attend funeral of Chad president
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
"You gave your life for Chad," says France's President Macron at Idriss Déby's state funeral.
Published: Apr 23, 2021 14:04:31

Malaria vaccine hailed as potential breakthrough
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Early trials show Oxford developers may have finally found an effective jab against the disease.
Published: Apr 23, 2021 12:04:27

Putin opponent Navalny ends hunger strike in Russian jail
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Alexei Navalny refused food in a Russian jail for 24 days but his doctors appealed to him to stop.
Published: Apr 23, 2021 12:04:42

India Covid crisis: Hospitals buckle under record surge
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Families of Covid patients are pleading for hospital care as emergency rooms and wards overflow.
Published: Apr 23, 2021 11:04:58

SpaceX Dragon crew of four astronauts blast off to the International Space Station
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Four astronauts are en route to the International Space Station after a successful Nasa SpaceX launch.
Published: Apr 23, 2021 11:04:57

Sarah Voss: German gymnast's outfit takes on sexualisation in sport
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Sarah Voss defies convention by ditching the leotard for a full-body suit at the European championship.
Published: Apr 23, 2021 11:04:21

Isa Pantami: The Nigerian minister haunted by extremist views
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Nigeria's government backs Isa Pantami, who has previously expressed support for jihadi groups.
Published: Apr 23, 2021 11:04:33

Chad family feud intensifies transition tensions after Idriss Déby's death
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Efforts to stabilise Chad could be undermined by feuds within the former president's family and the military.
Published: Apr 23, 2021 10:04:26

US Dragon crewship launches to space station
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Four astronauts leave Florida in a Dragon capsule bound for the International Space Station.
Published: Apr 23, 2021 09:04:06

Capitol riot: Man accused after Bumble dating app boast
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A US man has reportedly been arrested and charged after telling a match "I did storm the Capitol".
Published: Apr 23, 2021 09:04:54

Shock G: Digital Underground's The Humpty Dance rapper dies, aged 57
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
He was the co-founder of hip-hop pioneers Digital Underground and produced 2Pac's debut album.
Published: Apr 23, 2021 09:04:57

UFC head wants to stage round in Africa
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
UFC head Dana White says that he wants there to be a round of the competition in Africa in 2022.
Published: Apr 23, 2021 09:04:54

More than 100 injured in East Jerusalem clashes
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Tensions boil over into some of the worst violence in the Israeli-occupied sector for months.
Published: Apr 23, 2021 08:04:28

US joins race to find stricken Indonesia submarine
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Indonesia is trying to rescue 53 crew on board a missing submarine before their oxygen runs out.
Published: Apr 23, 2021 08:04:34

US President Joe Biden to 'propose hiking tax on rich'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The plan would increase US capital gains taxes and the top marginal income tax rate.
Published: Apr 23, 2021 03:04:14

Tesla's Autopilot 'tricked' to operate without driver
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A Model Y made multiple trips on a test track without a human in the driver's seat, engineers found.
Published: Apr 23, 2021 01:04:10

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