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.

Trump Putin call: CIA helped stop Russia terror attack
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Vladimir Putin phoned Donald Trump to thank him for the information provided.
Published: Dec 17, 2017 13:12:59

South Africa's ANC party to vote for new leader
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/africa/rss.xml
Emotions run high as South Africa's governing ANC party selects a leader to succeed Jacob Zuma.
Published: Dec 17, 2017 12:12:15

Star Wars: The Last Jedi takes $450m on opening weekend
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
It is the second biggest grossing opening weekend in North America.
Published: Dec 17, 2017 12:12:23

UK embassy worker found dead in Lebanon
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Rebecca Dykes' body was found on Saturday and she had been strangled, police sources say.
Published: Dec 17, 2017 12:12:00

Pentagon's secret UFO programme revealed
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
US media reports say documents from the operation describe strange aircraft and hovering objects.
Published: Dec 17, 2017 08:12:12

Fran├žois Gabart gets a hero's welcome after breaking sailing record
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Fran├žois Gabart is welcomed home after breaking the record for fastest solo lap around the world.
Published: Dec 17, 2017 08:12:45

Barry Sherman: Family disputes reports on mystery double death in Canada
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Barry Sherman and his wife were found dead at their home in Toronto, Canada, in unclear circumstances.
Published: Dec 17, 2017 07:12:51

Deadly attack on Methodist church in Pakistan
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
At least eight people are killed as suicide bombers target a Methodist church service in Quetta.
Published: Dec 17, 2017 07:12:29

Trump Russia inquiry: Mueller improperly obtained emails, lawyer says
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
A Trump ally says investigators on the Russia inquiry unlawfully obtained thousands of emails.
Published: Dec 17, 2017 04:12:16

Barack Obama prepares for his Today programme interview with Prince Harry
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Barack Obama prepares for his Today programme interview with Prince Harry.
Published: Dec 17, 2017 04:12:03

Why this US woman is backing minority gun clubs
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml
Meet Samantha Sorillo of Miami, the woman who is backing African-American gun clubs.
Published: Dec 16, 2017 18:12:01

Anita Hill to chair Hollywood harassment commission
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The lawyer will head the group after a series of Hollywood sexual abuse and harassment allegations.
Published: Dec 16, 2017 16:12:14

Hunter Harrison: CSX railway boss dies
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
The US transportation company's shares fell sharply on Friday after CEO's medical leave was announced.
Published: Dec 16, 2017 15:12:09

Santa Barbara evacuated as Thomas flares up again
From: http://newsrss.bbc.co.uk/rss/newsonline_world_edition/americas/rss.xml
Strong winds drive the Thomas fire - now California's third-biggest on record - towards the coast.
Published: Dec 16, 2017 13:12:07

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