View Full Version : RSS Feed to HTML


dilligaf
12-17-2005, 01:10 PM
Here's a newb question, I've read a bit but I'm still a little foggy. I'm putting up a php page that needs to display an rss feed in plain old html. The feed isn't available as a js feed so my understanding is that I need to run it through an aggregator or script my server.

Does anyone have a simple solution with detailed instructions (a php script that I can just plug the feed into perhaps), or am I missing it completely?

jlknauff
12-17-2005, 02:53 PM
Yes, Magpie RSS (http://magpierss.sourceforge.net/). Just upload the files to your root, then drop the script into your php page and give it a feed to pull.

Let me know if you have any difficulties w/ it.

BTW - it can be on any type of dynamic page or even HTML (you'll need to modify your .htaccess file for HTML pages).

jlknauff
12-17-2005, 02:58 PM
Oh, also - there is a small problem with the script that causes it to write non w3c compliant HTML when it parses the feed. I haven't been compelled to modify it but if you get to it before I do, let me know ;)

dilligaf
12-17-2005, 03:16 PM
I'll give it a shot, thanks!

dilligaf
12-17-2005, 04:02 PM
That was cool, thanks! Now off to the cook book to play with it. Thanks again JLK.

jlknauff
12-17-2005, 05:07 PM
Anytime ;)

dilligaf
12-20-2005, 06:22 AM
I'm back, The inastallation guide/examples cited on the site http://laughingmeme.org/magpie_blog/?p=80 was and is down (and still is). I pulled one of the web that seemed to be working with code examples but I'm running into bugs. Do you have a reference from install to display (file modifications)?

jlknauff
12-20-2005, 06:31 AM
nope...but I can tell you how ;)

Unzip everything (maintaining the directory structure) and upload it to your root. Then drop your script into your php or asp page, check the path for the magpie file in the script, give it a feed and that is ready to go. Then just check the CHMOD on the magpie files.

If you're still running into problems, let me know where the page is and I'll take a look.

dilligaf
12-20-2005, 06:48 AM
Should they all be 777?

jlknauff
12-20-2005, 06:52 AM
I wouldn't use 777, there may be some security implications to that. I would try 755.

dilligaf
12-20-2005, 07:05 AM
They're already 755 that's why I asked. hmmm Can you pm me the php script you're using to display the feed?

dilligaf
12-20-2005, 11:32 AM
Jeremy, thanks... nipped a little hack and tack from webmonkey and it's flying right again.

jlknauff
12-21-2005, 05:11 AM
Excellent :)