Posted by Vince Morgan on 04/26/07 08:00
"zach" <wackzingo@gmail.com> wrote in message
news:F7SdnewfZeP1na3bnZ2dnUVZ_gCdnZ2d@wavecable.com...
> Hello everyone,
>
> I was looking for short simple script to show rss feeds on my website
> and I found this one and it works awesome except I don't know what to
> add or modify to limit the number of entries it shows. The entire script
> is posted below. Thanks in advance for the help.
>
You could count the number of </item>'s according to the limit you'd impose.
Grab a substring up to that point [including the </item> tag] and append
</channel></rss> to the substring, thereby recreating a shortened version.
I think ;)
Vince
Navigation:
[Reply to this message]
|