Home arrow PHP arrow Page 3 - Rockin’ RSS with PHP on your HTML

How--and why--to get started - PHP

An RSS feed lets webmasters tease visitors into returning to their websites again and again to check out new content. Danny Wall explains how to set up this simple, automated, spamless way of getting Web surfers to come back for more.

TABLE OF CONTENTS:
  1. Rockin’ RSS with PHP on your HTML
  2. An idea that's catching on
  3. How--and why--to get started
  4. Starting with the header
  5. Adding content
  6. Tease the reader
By: Danny Wall
Rating: starstarstarstarstar / 42
November 23, 2004

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

You should know that there are a lot of tutorials and the like on how to add RSS content to your own site.  An excellent one can be found at: http://www.devshed.com/c/a/PHP/Plugging-RDF-Content-Into-Your-Web-Site-With-PHP.

Additionally, there are a wide range of tools to make adding RSS to your site easy with hardly writing any code of you own. I personally use the MagpieRSS toolset created in PHP which can be found at http://magpierss.sourceforge.net. So instead of covering how to get RSS added to your site, what I’d like to do is talk about how you can build your own RSS feed.

Some webmasters that I know groan over the thought of RSS. It’s yet another new technology to learn, another new thing to add to their site and manage. The thing is, RSS is really nothing more than an XML application, and if done right, it doesn’t need any management.  Everything can be (indeed, should be) automated. 

In fact, RSS it is the first widespread use of XML. It is the first time XML is being used to do something useful for the average Web surfer AND for the average webmaster.

To start with, the easiest thing to do will be to take a look at what an RSS file looks like. You can see an example RSS file at: http://www.wolfdatasystems.com/rss.xml

To anyone with any knowledge of HTML it isn’t really hard to figure out what is going on.  There isn’t anything strange or scary, there isn’t anything to make you cringe.



 
 
>>> More PHP Articles          >>> More By Danny Wall
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap

Dev Shed Tutorial Topics: