<?php /** * @author Kjell-Inge Gustafsson <hide@address.com> * @copyright copyright (c) 2006 Kjell-Inge Gustafsson kigkonsult * @link www.kigkonsult.se/rsscalCreator/index.php hide@address.com * * License: * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ require_once './rsscalCreator.class.php'; // ensure the right path to class file define( 'CACHE', './cache' ); // SETUP !!! directory to store feed file /* initiate and set required elements */ $feed = new rsscalCreator( 'RSSCAL feed', 'http://www.kigkonsult.se/rsscalCreator', 'Sample feed' ); /* set items subelements, title (required), link (required), description (optional) */ $feed->addItem( new rsscalItem( 'Item no 1' , 'http://www.kigkonsult.se/rsscalCreator/1' )); $feed->addItem( new rsscalItem( 'Item no 2' , 'http://www.kigkonsult.se/rsscalCreator/2' )); /* create, save feed file and redirect feed to browser */ $feed->returnRSS( CACHE ); ?>