views:

39

answers:

2

I was wondering if there is a good tutorial or tutorials on how to build good RSS 2.0 and ATOM feeds?

+1  A: 

Use header() to set the mime type to XML/atom/etc. Use print to form the output of your feed. Or you can use an rss class from PEAR/etc

http://www.webreference.com/authoring/languages/xml/rss/custom_feeds/

ryan
+1  A: 

Instead of writing RSS manually you can consider using pre-build classes. There are many PHP libraries (simple and complex) to deal with RSS and ATOM feeds.

http://www.phpclasses.org/package/560-PHP-XML-RSS-feed-generator-for-content-syndication-.html

(a sample example to use above class)

Ankit Jain