RSS Feed Generator 1.0.3

Discussion in 'PHP' started by astkboy2008, Dec 7, 2009.

  1. #1
    RSS Feed Generator 1.0.3

    There are separate classes for the RSS XML document, the feed channel definition, the feed items definition, the search text input definition and the feed logo image definition.

    The compose a RSS feed it is necessary to create object a RSS feed channel object and add item objects to its definition.

    The RSS feed XML document is generated by an RSS feed object given a previously created channel object.

    How I can Use it
    ?
    its very easy see this example

    <?php
    
    require_once 'rss_generator.inc.php';
    
    $rss_channel = new rssGenerator_channel();
    $rss_channel->atomLinkHref = '';
    $rss_channel->title = 'My News';
    $rss_channel->link = 'http://mysite.com/news.php';
    $rss_channel->description = 'The latest news about web-development.';
    $rss_channel->language = 'en-us';
    $rss_channel->generator = 'PHP RSS Feed Generator';
    $rss_channel->managingEditor = 'your email here';
    $rss_channel->webMaster = 'your email here agian';
    //the example
    $item = new rssGenerator_item();
    $item->title = 'Another website launched';
    $item->description = 'Just another website launched.';
    $item->link = 'http://anothersite.com';
    $item->guid = 'http://anothersite.com';
    $item->pubDate = 'Wed, 08 Mar 2006 00:00:01 GMT';
    $rss_channel->items[] = $item;
    
    $rss_feed = new rssGenerator_rss();
    $rss_feed->encoding = 'UTF-8';
    $rss_feed->version = '2.0';
    header('Content-Type: text/xml');
    echo $rss_feed->createFeed($rss_channel);
    
    ?>
    PHP:
    download it
    http://www.jooria.com/downloads/434/RSS-Generator-7-12.zip
    Code (markup):
     
    astkboy2008, Dec 7, 2009 IP
    NetworkTown.Net likes this.
  2. clinton

    clinton Well-Known Member

    Messages:
    2,166
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Good work brother and not sure if this is the right place for it. Thought there was another board for software stuffs.
     
    clinton, Dec 7, 2009 IP
  3. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #3
    I usually use simple pie rss, but will check this one out.
     
    buldozerceto, Dec 7, 2009 IP
  4. astkboy2008

    astkboy2008 Peon

    Messages:
    211
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh god,i will make this the next time
    thanks
     
    astkboy2008, Dec 8, 2009 IP