Location: PHPKode > scripts > EasyFeeder > easyfeeder/readme.txt
EasyFeeder 1.0

Copyright CalendarScripts, http://calendarscripts.info

This script is free to use. There are absolutely no obligations or restrictions in any way

Using Easyfeeder

1. There is no installation. Just upload easyfeeder.php in a folder in your website so you can use it

2. Configure EasyFeeder:

- create config array:
$configs=array();

- pass URL of the feed to parse
$configs[feed]="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml"; (put the url of the feed)

- pass HTML template name (how to create the template, see item 4.)
$configs[template]="template.html";

The other options are optional:

$configs[maxitems]="5"; //maximum items from the feed to show. Set "0" for all items

3. To make the functions available for using anywhere, include it in your script:

require_once("easyfeeder.php");

4. Create the template. The template is just a HTML file formatted in any way you wish (check template.html for reference). You can use the following masks in it:

{title} - the feed title
{link} - feed link
{description} - the main content
{language} - language, if provided		
{copyright} - copyright notice, if provided	
{managingEditor}, {webMaster} - if provided
{pubDate} - date fo publishing the news
{lastBuildDate} - date of last change
{category} - news category if available

5. Display feed content by running the function:

<?=easyfeeder($configs)?>
or
<? echo easyfeeder($configs) ?>

If you want to display several feeds on page you may or may not change the arguments before each function run. (you need to change the "feed" parametter and can change the template or the other display options)

Check samplepage.php for example of using EasyFeeder with 2 different feeds.
Return current item: EasyFeeder