Posted By

mchadwick on 02/25/11


Tagged

php xml


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Some0ne


print xml feed to page


 / Published in: PHP
 

  1. <?php header('Content-type: text/xml');?>
  2.  
  3. <?php
  4. $location = "http://rss.news.yahoo.com/rss/topstories";
  5. print file_get_contents($location);?>

Report this snippet  

You need to login to post a comment.