Current location: Hot Scripts Forums » Programming Languages » PHP » Making an RSS news feed


Making an RSS news feed

Reply
  #1 (permalink)  
Old 08-24-04, 12:48 AM
Merovingian's Avatar
Merovingian Merovingian is offline
Newbie Coder
 
Join Date: Jan 2004
Location: Los Angeles
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Making an RSS news feed

Ive been wanting to look this up but dont seem to find anything thats worth trying so ill post this question here.
"Does anyone know where i can find a good tutorial for making an RSS News feed in PHP ?" if so please PM me or reply to this post.
I want to test this out so I can add one to my personal site as an "updates section" for my site.

Thanks in Advance
__________________
"Duo seguere aut de via decede" ...
Reply With Quote
  #2 (permalink)  
Old 08-24-04, 01:40 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,

I once made an RSS Feed generation script for my blog app, and when I did it, this page really helped me: http://blogs.law.harvard.edu/tech/rss . Yet this is RSS2.0 spec, rather than tutorial.

In a nutshell, RSS is an XML, or a simple text, so you can just fwrite() your RSS in accordance with your news updates and let users read this generated page. I did exacly that and had no problem viewing with RSS readers like FeedDemon. PHP5 may have a better way to generate RSS files with objects, but I've not touched it yet, so I can't really comment on it.

I'm sorry if I'm off, but hope this gives you some idea.
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 08-24-04, 02:34 AM
RynO RynO is offline
Newbie Coder
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
http://searchenginewatch.com/serepor...le.php/2175271

That seems like a good article to get versed in RSS with.

All you need to do to output an RSS feed using php is use the following header:

header("Content-Type: text/xml");
Reply With Quote
  #4 (permalink)  
Old 09-30-04, 08:21 AM
notepage notepage is offline
Newbie Coder
 
Join Date: Aug 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
making an rss feed

Hi,

Quote:
Originally Posted by Merovingian
Ive been wanting to look this up but dont seem to find anything thats worth trying so ill post this question here.
"Does anyone know where i can find a good tutorial for making an RSS News feed in PHP ?"
We've just released a beta version of FeedForAll http://www.feedforall.com an rss feed creation tool. We would welcome comments and suggestions from those interested in rss and feed creation.

Thank you
Sharon Housley
NotePage, Inc.
http://www.notepage.net
Reply With Quote
  #5 (permalink)  
Old 09-30-04, 09:14 AM
websmart's Avatar
websmart websmart is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Use GPL systems

There are open source News/blog creation scripts available which ALSO
create rss feeds for those news : on one of our sites we use zshaped
news system which displays news created on our website as well as
generate RSS feeds for that, pings blogs.com, send news to friend links,
trackbacks etc. etc.

example : http://www.specialistdoctors.com/news.php

RSS feed example : http://www.specialistdoctors.com/news/rss.php

For display news on other pages, there are lot of options available, including
javascript generators which can place your news anywhere, including inside
a table cell. See example of same news page items on home page :

http://www.specialistdoctors.com


The posting for feedforall.com beta version seems good but on their site
they make it clear that you will get discount for registered version. Means,
as soon as they release final product, buy it or stop using it on your site.

Another blog system on test can be viewed there which is article/news/blog
system :
http://specialistdoctors.com/articles/blog_all.php

On that page, see at right side, bottom : automatic provided RSS feeds for
articles created.
Administration pages have so many options to control articles
contributors with different rights etc. This (b2evolution) article system is also
GPL licence - free to use and modify as per your needs.

There are many. Which will be best for you, depends on your webhost type
also, what they have installed : PHP, Perl (your own cgi-bin directory), your
rights on server, etc.

__________________
Vyapari Trade Secrets
http://www.vyapari.com/maillist/

Last edited by websmart; 09-30-04 at 09:25 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
rss feed search interface using CPAN oiranoinu Perl 1 07-21-04 12:02 AM
Archiving timestamped news by month? Keith PHP 5 03-06-04 05:28 PM
Starting Small - A simple news script RaiTid_R PHP 4 03-06-04 12:45 PM
Page ID for news articles... macj1326 PHP 16 07-04-03 02:13 PM


All times are GMT -5. The time now is 04:23 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.