PHP Classes

File: rssfeed.example.php

Recommend this page to a friend!
  Classes of Cornelius Bolten  >  RSSFeed  >  rssfeed.example.php  >  Download  
File: rssfeed.example.php
Role: Example script
Content type: text/plain
Description: example-script how to use this package
Class: RSSFeed
Create a RSS feed in an easy way
Author: By
Last change: updated example for new usage of the whole class.
Date: 12 years ago
Size: 1,441 bytes


Class file image Download

// create a new feed with ISO
    // or without ISO:
    // $myFeed = new RSSFeed();
    // if no ISO given, will take ISO-8859-1
$myFeed = new RSSFeed('ISO-8859-1');
" features a rich mix of information and services for the XML community.",
"copyright 2003",

// add an image to your XML-feed
$myFeed->addImage( "",
// add a new channel

// add feed-items to your channel
$myFeed->addFeedItem( "Processing Inclusions with XSLT",
"Processing document inclusions with general XML tools can be problematic. This article proposes a way of preserving inclusion information through SAX-based processing.");
$myFeed->addFeedItem( "Putting RDF to Work",
"Tool and API support for the Resource Description Framework is slowly coming of age. Edd Dumbill takes a look at RDFDB, one of the most exciting new RDF toolkits.");

// and release feed. this will output wellformed XML