Generating RSS Feeds...

Discussion in 'Programming' started by jkashu, Aug 19, 2008.

  1. #1
    I need to create an RSS feed from articles in my database...

    <?xml version="1.0" encoding="utf-8"?> 
    <rss version="2.0">  <channel>  
    <title>Swing-Trading.com</title>  
    <link></link> 
    <description>Description of Feed</description> 
    <category></category>  
    <generator>RSS 2.0 generation class</generator> 
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>  
    <item> 
    <title>TITLE</title> 
    <link></link>
    <description>CONTENTS</description>  
    </item>
    </channel>
    </rss>
    PHP:
    I just have a script that replaces TITLE and CONTENTS; however, CONTENTS only works if it is short. If I want to put a lot of information what do I do??
     
    jkashu, Aug 19, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    Create a little script that creates the XML feed for you, if you like PM me your db structure and i'll create it for a small price! :) (and pm the details)
     
    EricBruggema, Aug 19, 2008 IP
  3. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #3
    There are many ready classes that let you do that. Search google and you'll see them.

    Peace,
     
    Barti1987, Aug 20, 2008 IP