|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
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! |
|
|
|
|
|
#2 |
|
SitePoint Addict
![]() ![]() ![]() Join Date: Jun 2001
Location: Dublin
Posts: 221
|
Try www.thewebmasters.net. I use their script successfully. Easy to implement
__________________
|
|
|
|
|
|
#3 |
|
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! |
|
|
|
|
|
#4 |
|
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
![]() |
|
|
|
|
|
#5 |
|
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 /> |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 09:25.










Linear Mode
