RSS 1.0 creator 1.0

Creates a valid RSS 1.0 document.

Usage:
New RSS ( void )

Methods:
addDataSource ( dataSource ) - add new dataSource to RSS instance
dataSource: array of associated arrays (item)
item: associated array:
-> title : title of item (str, suggest. max 100 chars for RSS 0.91 compatiblity)
-> link : url that item links to (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> description : info about item (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addChannel ( channel ) - add Channel info
channel : associated array
-> about: url where this channel will be located (url of RSS file)
-> title: title of channel (str, suggest. max 40 chars for RSS 0.91 compatiblity)
-> link: link to root of site / section that this RSS serves (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> description: info about this channel (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addImage ( image ) - add Image info (optional)
image : associated array
-> title : title of image (str, suggest. max 100 chars for RSS 0.91 compatiblity)
-> link : url where image should link to (str, suggest. max 500 chars for RSS 0.91 compatiblity)
-> url : url where image is located (str, suggest. max 500 chars for RSS 0.91 compatiblity)

addItem ( item )
- adds a single item to the RSS, see item structure, above.

get( void )
- returns the RSS document as a string

Limitations:
- Currently does not support the optional core element.
- Arguments are not validated

License type: BSD - BSD License
Date added: 5 years, 6 months 24 days ago | Last updated: 5 years, 6 months 24 days ago

More popular Web service

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

rss-creator-1-0
Hot Scripts
Sponsors