An RSS feed has one primary purpose: To format information in such a way that it can be read by just about any standards-compliant feed reader.
Therefore, an RSS feed is really not "content" by itself, but rather a mode of output for content that already exists. If you have content that is published periodically in a way similar to news items or announcements, you can publish that content in an RSS feed.
Since the way the content is originally published differs widely (you might want to export the posts of a forum, or a blog, or even just the status of a network node), I'm not going to go into the ways you would get the content from that form into publishable format.
Rather, here is a simple PHP script that assumes the content that should be published is already in a MySQL table (with the appropriate columns: title, author, date, etc), and simply publishes the content according to RSS 2.0 specifications.
Firstly, here is a brief tree outline of how an RSS feed is built up:
This is the color-coded PHP code. The complete script is attached as a text file, so you can skip straight to the end and just download it.This is the end of the PHP code.