74930

Display RSS feed item on intranet via php

Question:

I've been at this the whole day. We have an intranet at the office, some PC's does not have internet access. I'm trying to get this website's RSS (<strong>http://news.bbc.co.uk/onthisday/</strong>)into a table with images and display it on the intranet, is this at all possible? Can someone please point me in the right direction?

Answer1:

http://newsrss.bbc.co.uk/rss/on_this_day/front_page/rss.xml

There's your XML, just use SimpleXML to get your data from it. Very simple really.

Something to get you started:

$a = curl_init("http://newsrss.bbc.co.uk/rss/on_this_day/front_page/rss.xml"); curl_setopt($a, CURLOPT_RETURNTRANSFER,1); $b = curl_exec($a); $xml = simplexml_load_string($b); var_dump($xml);

Recommend

  • React and React Router, rendering the same element twice with a different prop results in two elemen
  • How to use Wscript Exec to run a Java file
  • methods width and height Mechanize
  • Anypoint Studio fails when running Maven project
  • Open protected word document with OpenXML
  • Does pImpl fundamentally solve C++ DLL issue?
  • Adding Extra Data to Auth Cookie after login - MVC 5
  • Must Office.initialize always be set?
  • How to activate JS data-filter when page loads?
  • Office365 authentication without login redirection
  • How should I start to implement RESTful web service?
  • leaflet marker not displaying in certain contexts
  • Can't run Appium tests on iOS 10 on real device
  • XSD assert not recognised
  • Open an application in a space using applescripts
  • back button function for phonegap windows phone 7
  • Synchronize windows folders
  • Looking for good analogy/examples for monitor verses semaphore
  • How to write order and limit within cakephp joins array
  • HTTP/2 streams vs HTTP/1.1 connections
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Syntax for setting draggablecursor property in google maps api
  • Android screen density dpi vs ppi
  • How would I use PHP exceptions to define a redirect?
  • How to extract text from Word files using C#?
  • ActionScript 2 vs ActionScript 3 performance
  • To display the title for the current loaction in map in iphone
  • Delete MySQLi record without showing the id in the URL
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • GridView Sorting works once only
  • Unanticipated behavior
  • Traverse Array and Display in markup
  • bootstrap to use multiple ng-app
  • Comma separated Values
  • How to get icons for entities from eclipse?
  • How to set the response of a form post action to a iframe source?
  • Trying to get generic when generic is not available
  • need help with bizarre java.net.HttpURLConnection behavior
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy