Rss.php
From DreamHost
Choose a MediaWiki Extension
I am using the most recent / modified version:
Which was based on:
- version of the RSS engine from User:Rdb78, which in turn is based on the
- version of the RSS engine from User:Duesentrieb, which in turn is an extended
- version of the RSS-feed extension by Mutante.
It now supports highlighting and filtering. Moreover, the wiki engine cache can be disabled as described on http://public.kitware.com/Wiki/User:Barre/MediaWiki/Extensions . Finally, the default encoding is set to ISO-8859-1.
Install Magpierss
Mapierss is a good RSS library for php 4.4 (I think) and above. It is used by the MediaWiki Extensions listed above - so needs installing. Installation instructions are far and few between - mainly because it is so simple. First download from the SourceForge project:
If you unstuff the compressed archive the Install file is about the only place you will find anything written down which is helful - quoting from vo.72:
REQUIREMENTS
MapieRSS requires a recent PHP 4+ (developed with 4.2.0)
with xml (expat) support.
Optionally:
* PHP5 with libxml2 support.
* cURL for SSL support
* iconv (preferred) or mb_string for expanded character set support
QUICK START
Magpie consists of 4 files (rss_fetch.inc, rss_parser.inc, rss_cache.inc,
and rss_utils.inc), and the directory extlib (which contains a modified
version of the Snoopy HTTP client)
Copy these 5 resources to a directory named 'magpierss' in the same
directory as your PHP script.
At the top of your script add the following line:
require_once('magpierss/rss_fetch.inc');
Now you can use the fetch_rss() method:
$rss = fetch_rss($url);
Done. That's it. See README for more details on using MagpieRSS.
What I did was ftp the magpierss.xx.tar.gz file to your /myUser/myDomain/w/ directory - ie your MediaWiki Directory, and unpack it with the following shell command:
tar -xvvzf magpierss*
Then rename the folder with a shell command like:
mv magpierss-0.72/ magpierss/
Alternatively you can unstuff the file on your local machine and upload the files via ftp...
Debug the Installation
Magpierss should now be installed and if you direct your browser to the magpie_debug.php file which was installed if you uploaded the entire contents of the stuffed archive above) - you should get a page that looks something like:

