Tutorial: Generating Feeds Using Php FeedWriter

August 14th, 2011
by Daniel Soutter

A detailed tutorial on Code-Tips.com demonstrating how to generate a feed using the Php FeedWriter class library:

How to Generate Feed Using Php (Atom 1.0 and RSS 2.0 Compatible)

Main Steps Include:

  • Prepare your feed script/page – Instantiate a (Php) FeedWriter Class Object
  • Add additional (Channel) data to the feed
  • Add Items to the Feed
  • Get the specified feed output format
  • (Optional) Set the “Content” element of each feed item as type “HTML”
  • Output the Feed XML
  • (Optional) Writing to a file / Caching Feed Content

The feed created in the tutorial can be displayed in all supported formats (Atom 1.0, RSS 2.0, RSS 1.0 (RDF), RSS 0.92 and RSS 0.91).


Tags: , , , ,
Posted in add_item(), FeedWriter Class, getXML(), set_author(), set_date(), set_selfLink(), writeToFile() | Comments (0)

  • Php FeedWriter (c) Copyright 2011 Daniel Soutter. Php FeedWriter and the information on this site has been designed to benefit website developers, owners and users, but may contain errors and is provided as is, with no warranty. Terms.