tags:

views:

38

answers:

2

Hello,

I want to be able to read any well-formed RSS/ATOM file. That would mean I would not not know the tags, start the loop and the fields. How do I go about doing it in PHP.

Thanks Jean

+1  A: 

You can try Zend Framework's feed class.

But you should be more specific about your task..

lfx
I want to be able to do it from scratch without the assistance of any frameworks, would it be possible?
Jean
Sure it is possible :) If you say that you want to read well formated rss/atom feed, first what you want to do is examine rss/atom specifications ( http://cyber.law.harvard.edu/rss/rss.html / http://www.rss-specifications.com/ / http://www.atomenabled.org/developers/syndication/atom-format-spec.php ) and then write your own class/parser.
lfx
A: 

You can use SimpleXML http://php.net/manual/en/function.simplexml-load-string.php

Osman Üngür