Skip navigation.
Home

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.

Trump causes 'major' shift in global view of US: Pew
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The US president and his policies "are broadly unpopular around the globe", a wide new survey says.
Published: Jun 26, 2017 20:06:41

US warns Syria over 'potential' plan for chemical attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Syria is planning another chemical attack, the US says, warning it would pay a "heavy price".
Published: Jun 26, 2017 20:06:11

Trump praises US-India relations after talks with Modi
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Trade and security topped the agenda at the first direct talks between the US President and Indian PM.
Published: Jun 26, 2017 19:06:30

Martin Shkreli fraud trial opens in New York
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The former pharmaceutical chief denies operating a Ponzi-like scheme that cheated investors.
Published: Jun 26, 2017 17:06:11

Brazil's Michel Temer charged with corruption
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The charges follow a recording in which Mr Temer appears to encourage the payment of hush money.
Published: Jun 26, 2017 17:06:08

Senate healthcare bill leaves 22m more without cover, CBO says
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Millions of Americans could lose insurance under a Senate bill, a congressional report says.
Published: Jun 26, 2017 16:06:20

The first cash machine came into use 50 years ago today
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
It is 50 years to the day that the first cash machine came into use. How has it changed over the years?
Published: Jun 26, 2017 16:06:26

Trump travel ban injunction partly lifted by top US court
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US Supreme Court partly implements the travel and refugee bans pending a full review in October.
Published: Jun 26, 2017 12:06:39

US senator to block arms sales to Gulf over Qatar crisis
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Influential Republican Bob Corker wants to see a "path forward" to resolving the crisis in the Gulf.
Published: Jun 26, 2017 12:06:14

Grenfell Tower: Cladding firm ends global sales for tower blocks
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
The cladding was used on Grenfell Tower, where at least 79 are feared to have died in a fire.
Published: Jun 26, 2017 12:06:59

El Hadji Diouf: I'm fit, sexy and helping Senegal
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Senegal legend El Hadji Diouf says he's fitter than ever and enjoying life away from the pitch, advising the president on how to bring through the next generation of sport stars.
Published: Jun 26, 2017 11:06:31

Canada nurse Elizabeth Wettlaufer jailed for life for murders
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A former Ontario nurse is sentenced to life in prison for killing eight elderly people in her care.
Published: Jun 26, 2017 11:06:59

America's Cup: New Zealand beat Team USA to win title
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
New Zealand beat defending champions Team USA in Bermuda to win the America's Cup with a 7-1 series victory.
Published: Jun 26, 2017 11:06:48

Niger migrants: 52 die during desert crossing
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Dozens of bodies are buried after a group of 75 people is abandoned by traffickers.
Published: Jun 26, 2017 10:06:04

Germany warns Erdogan bodyguards not to attend G20
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Germany says it does not want agents involved in a brawl in Washington to attend the Hamburg summit.
Published: Jun 26, 2017 10:06:04

Warmbier: Professor fired for saying he 'got what he deserved'
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The University of Delaware sacks a professor who derided Otto Warmbier as a "clueless white male".
Published: Jun 26, 2017 08:06:43

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