Error! No URL specified!
------------------------------------------- Tom's Feed Handler ver. 2.2 ------------------------------------------- A SimplePie add-on by Thomas Chapin email: tchapin@gmail.com url: http://www.tommychapin.com ------------------------------------------- General Usage: index.php?url=http://whatever.com/rss/&javascript=true&displaymode=normal&cycleinterval=2000&linktitle=true&showlink=true&showcontent=true&showdate=true&articlelimit=5&divprefix=RemoteFeed&cacheseconds=60 ------------------------------------------- Server Side Usage: <?php // For PHP $handle = fopen("index.php?url=http://whatever.com/rss", "r"); $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } echo $contents; fclose($handle); ?> ------------------------------------------- Client Side Usage: <script language="javascript" src="index.php?url=http://whatever.com/rss/"></script> ------------------------------------------- All parameters are optional *except* the URL, which is required ------------------------------------------- url=http://whatever.com/rss/ (the URL of the feed to be grabbed) javascript=true (returns output as javascript, enabling remote feed inclusion via javascript src tag) displaymode=normal ("normal" lists items out, "cycle" displays one item at a time according to interval) cycleinterval=2000 (the number of milliseconds between article cycles) linktitle=true (link the title to the article or not) showlink=true (show the URL to the article) showcontent=false (hide or show the article's content) showdate=true (show or hide the date) articlelimit=5 (if specified, will limit the number of articles displayed, by the order they appear in the RSS) divprefix=RemoteFeed (the prefix that is added onto each class) cacheseconds=60 (seconds to cache the feed for - defaults to 10 minutes if not set) ------------------------------------------- Output elements are classed like this by default (although you can change the RemoteFeed prefix by using the divprefix option): ------------------------------------------- RemoteFeedContainer RemoteFeedItem RemoteFeedItem-Title RemoteFeedItem-Link RemoteFeedItem-PubDate RemoteFeedItem-Content ------------------------------------------- Revision History: ------------------------------------------- version 2.2: - Added GetGetVariable and GetPostVariable functions. - Fixed script so that it doesn't throw errors in the error log when GET variables are missing. - Removed script timer. version 2.1: - Switched from Magpie RSS to SimplePie RSS for handling feeds.