Working a little project, and want to include the ability for users to add RSS feeds to a particular page. I've never used XML with PHP, so had a quick Google to see how things are done. So far I've come across 3 ways of apparently getting it done, and they all look pretty different to one another. Using PHP's built in XML functions, SimpleXML or cURL (with what looks like SimpleXML).
Is there any benefit to using a particular method? I actually went ahead and created what I was needing using PHP's built in XML functions, but having a right bother getting it to only display the last 5 feeds and not the entire feed, so was wondering if the other 2 methods makes things a little less hassle free.
PHP RSS Reader
Moderator: General Moderators
Re: PHP RSS Reader
Of those three methods, SimpleXML is your best bet. It is quite a bit simpler than the other two methods. If those don't work, maybe look at a third party library such as magpieRSS or SimplePie (my personal favourite).
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: PHP RSS Reader
Cheers Pickle. Had a quick look at SimpleXML, and you're definitely right, it is a lot simpler to get done. Thanks again. 
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: PHP RSS Reader
SimplePie. It's Magpie, but better 