Skip to content

Instantly share code, notes, and snippets.

@hiromitz
Created November 17, 2010 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiromitz/703260 to your computer and use it in GitHub Desktop.
Save hiromitz/703260 to your computer and use it in GitHub Desktop.
Simple RSS Reader for ATOM
<?php
/**
* Simple RSS Reader for ATOM
*/
$url = 'http://feeds.feedburner.com/github'; // feed url
$rss = @simplexml_load_file($url);
foreach($rss->entry as $entry) {
echo "<h2>". $entry->title. "</h2>";
echo "<div>". $entry->content. "</div>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment