Limiting RSS Newsfeed to 10 Items (Headlines)

Discussion in 'XML' started by Specter, Jul 14, 2004.

  1. Specter

    Specter Guest

    Code:
    ____________________________________________________
    <?PHP
    header("Content-type: text/xml");
    echo"<?xml version=\"1.0\" encoding=\"windows-1252\" ?>
    <rss version=\"0.91\" >
    <channel>
    <title>Narnia Fans</title>
    <link>
    http://www.NarniaFans.com</link> <language>en-us</language>
    <description>The Latest
    News on Narnia and C.S. Lewis</description>
    <generator>CuteNews</generator> ";
    $template="rss"; include("show_news.php"); echo"</channel></rss>"; ?>
    ____________________________________________________

    Feed location: http://www.narniafans.com/news/rss.php

    Anyone have any tips on what I can do to limit this to show only the
    latest 10 Headlines?
    Specter, Jul 14, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. dmsc17454_2

    Syndicating news headlines

    dmsc17454_2, Jun 2, 2004, in forum: HTML
    Replies:
    1
    Views:
    379
    David Dorward
    Jun 2, 2004
  2. jojo
    Replies:
    2
    Views:
    845
  3. Trevor Andrews

    RSS newsfeed

    Trevor Andrews, Jan 24, 2004, in forum: XML
    Replies:
    0
    Views:
    393
    Trevor Andrews
    Jan 24, 2004
  4. Dennis Allen

    RSS newsfeed

    Dennis Allen, Nov 7, 2005, in forum: ASP General
    Replies:
    3
    Views:
    205
    bregent
    Nov 21, 2005
  5. Jonathan Groll
    Replies:
    1
    Views:
    260
    Kouhei Sutou
    Jun 27, 2009
Loading...

Share This Page