Go Back   SitePoint Forums > Forum Index > Program Your Site > PHP
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Apr 16, 2003, 15:19   #1
Crippler
SitePoint Addict
 
Join Date: Sep 2001
Location: London, UK
Posts: 220
How to parse an RSS Script.

Im looking to parse an RSS script to display news items on my site.

I've just gone through Kevin Yanks little peice on this for Site Pont and couldn't really make head or tale of it.

I then went to this site;

http://www.readinged.com/articles/rssparser/

and downloaded the script but am totally unsure on how to use it. No real instructions on how to do it, but I guess Im missing something as Im sure others have used it successfully.

Once I have the script, what exactly do I do?

Do I create a new file with the extenion php and "include" the downloaded file and then do something like this;

include 'onyx-rss.php';
$rss =& new ONYX_RSS();

$rss->parse('http://www.somesite.com/somefeed.xml');

The location of the rss file I wish to use is;

www.wrestlingdb.com/feeds/wdb.rss

So do I simpy insert that in place of the link in the code above, though the refers to a file with an xml extention. Id actually like to see a tutorial on how to include a rss file?

Does anyone know where I can find one?
__________________
stablewars.com - WWF Fantasy Wrestling, It ain't no E-fed!
Crippler is offline   Reply With Quote
Old Apr 17, 2003, 03:20   #2
lveale
SitePoint Addict
 
lveale's Avatar
 
Join Date: Jun 2001
Location: Dublin
Posts: 221
Try www.thewebmasters.net. I use their script successfully. Easy to implement
lveale is offline   Reply With Quote
Old Apr 19, 2003, 10:02   #3
Crippler
SitePoint Addict
 
Join Date: Sep 2001
Location: London, UK
Posts: 220
I looked at it and was equally confused, my problem right now is that I just don't get any of it. Everywhere I look on the net assume previous knowledge of xml and/or php. I have neither.

All I know is the location of my rss file and that I require a script that parses the results.

How they link together etc appears to beyond me right now. I can't find a basic tutorial that explains, this is where you put the file that does the parsing and why, this where you call the file to be parsed, this is how you now call it in your .html or .php file?

I don't have the time to actually learn XML from the bottom up to it relates to RSS.

The sitepoint turorial by Kevin also does just that, explains how to create this parse file and what it looks like but not how to link them together.
__________________
stablewars.com - WWF Fantasy Wrestling, It ain't no E-fed!
Crippler is offline   Reply With Quote
Old Apr 19, 2003, 11:53   #4
Dr Livingston
Non-Member
 
Join Date: Jan 2003
Posts: 5,788
Don't know if this PDF file will help or not but it's the only thing I have at the moment
Dr Livingston is offline   Reply With Quote
Old Apr 19, 2003, 12:06   #5
Dr Livingston
Non-Member
 
Join Date: Jan 2003
Posts: 5,788
Me again, I found this link - I've not yet had a look myself but it might help you 8)

http://<br /> <a href="http://www.xm...html</a><br />
Dr Livingston is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

 
Forum Jump


All times are GMT -7. The time now is 09:25.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved