On Jan 20, 2005, at 8:17 AM, Geert Wissink wrote:
i'm trying to implement the rss-feed from the
recent changes pages on
the portal of our organisation. I user magpie rss
(
http://magpierss.sourceforge.net/)_ which works seemlessly with the
rss-feed of my weblog (movable type). The recentchanges rss feed is
defined as followed:
namewiki/index.php?title=Speciaal:Recentchanges&feed=rss
It works in rss readers (Firefox) but doesn't work with magpie. Has
anybody succeeded in implementing the feed on a webpage (not
necessarily with magpie)?
It might help if you could give some details, such as:
* What version of magpie are you using?
* What PHP version? Any relevant configuration options?
* What is the exact code you've tried running?
* In what way does it not work? Error messages? Ugly display?
I downloaded magpierss 0.71, and wrote this quick test script to pull
my test server's recentchanges RSS feed. (PHP 4.3.9 on Mac OS X) It
seems capable of parsing the feed, and the dump shows a nice object
containing the items in my feed:
<?php
require_once('magpierss/rss_fetch.inc');
$url =
"http://verda-majo.local./~brion/rel1.4/index.php?title=Special:
Recentchanges&feed=rss";
$rss = fetch_rss($url);
var_dump( $rss );
?>
One thing I did notice is that magpie sets a five-second default
timeout. If your feed takes longer to generate it may be hitting the
timeout, in which case it may show a PHP warning message and not return
results.
-- brion vibber (brion @
pobox.com)