WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Building a Generic RSS Class With PHP
Categories : PHP, XML, Rich Site Summary (RSS), PHP Classes
devarticles
devarticles
Date : 2002-11-06
Grade : 0 of 5 (graded 0 times)
Viewed : 2955
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


  Submit your own code examples 
 


Introduction

It seems that every site provides an RSS XML feed these days -– even we do. But what is an RSS XML feed, why would you want to create one, and how the heck do you create one?

Well, in this article I'll attempt to answer all 3 questions for you, the intermediate PHP developer. In this article you will learn what RSS XML is and how to generate your own RSS XML file from a class that we will build in PHP. This class will connect to a database, grab the appropriate fields, and split out a nice RSS compatible XML file that you can share.

To implement the class that we will create, you need at least PHP v4.1 installed. Note that you don't need any sort of XML support enabled -- we will simply be using mysql_xxx functions and joining some strings together.

You will also need access to a MySQL database, which is where we will get the content to build our RSS XML data. I will assume that you have an intermedia knowledge of PHP, basic knowledge of XML, and no knowledge of the RSS standard.

Read More...









Data, its presentation and user interface forms
Categories : PHP, XML, User Interface
Building XML Web Services with PHP NuSOAP
Categories : PHP, NuSOAP, XML
PHP 101 Part 11 of 15 : Sinfully Simple
Categories : PHP, SimpleXML, XML
Serializing XML With PHP
Categories : PHP, XML, Serialize
Creating a Credit Card Validation Class With PHP
Categories : PHP, Credit Cards, PHP Classes
PHP5: Designing And Using Interfaces
Categories : PHP, Object Oriented, Interfaces, PHP Classes, Security
Parsing XML With DOMXML And PHP
Categories : XML, PHP
More PHP, XML and XSL for Wireless Content
Categories : PHP, XML, XSL, Wireless
Building An Extensible Menu Class
Categories : PHP, PHP Classes, Object Oriented, Navigation
PHP 101 Part 7 of 15 : The Bear Necessities
Categories : PHP, Beginner Guides, Object Oriented, PHP Classes
Injecting XML Content Into Page Templates With patXMLRenderer (part 1)
Categories : PHP, XML, Templates
Build Your Own KlipFolio Klip With PHP
Categories : XML, Content Management, PHP
Building XML Trees with PEAR's XML_Tree Class
Categories : PHP, Pear, XML
PHP Classes And Objects: A Guide To Development
Categories : PHP, PHP Classes, Object Oriented, Beginner Guides
Converting XML Into a PHP Data Structure
Categories : PHP, XML