Skip to content

Instantly share code, notes, and snippets.

@imelgrat
Last active August 24, 2017 13:04
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 imelgrat/37b506bc0ffe51eab1ae to your computer and use it in GitHub Desktop.
Save imelgrat/37b506bc0ffe51eab1ae to your computer and use it in GitHub Desktop.
RSS feeds, ATOM and OPML link retrieval with a PHP Class. Full article at: http://imelgrat.me/php/find-atom-opml-rss-feeds/
<?php
# Add the feed finder class
require_once('find_feeds.php');
# Create a new class instance
$find_links= new Find_RSS_Links('http://www.cleverclogs.org/2006/10/opml_autodiscov.html');
$links = $find_links->getLinks();
Display the RSS, ATOM and OPML links found on the page
print_r ($links);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment