DotDragnet
May 21, 2012, 06:07:08 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Creating a RSS Feed for my visitors  (Read 1942 times)
Barney McGrew
Sr. Member
****
Posts: 257


Resident Firefighter


View Profile WWW Awards
« on: December 11, 2007, 10:21:15 PM »

I am currently rewriting my site and wish to include a RSS page if possible. The page will simply inform people that a particular county within the UK are recruitng for FFs.

How hard are they to create and will I need anything special in terms of skills or applications to create one.

I am currently rewriting the whole site in XHTML (Yes, the dreaded tables have gone) which I believe is a bonus.
Logged
sarahA
DDN Contribs
Hero Member
*****
Posts: 2174



View Profile WWW Awards
« Reply #1 on: December 11, 2007, 10:35:27 PM »

This is the site I first used to learn it - http://cyber.law.harvard.edu/rss/rss.html

An RSS file, to be dynamic, needs to be written with a server side language. You can either overwrite a file called whatever.xml for example, or you can simply offer a PHP/ASP file as an RSS file and just change the header to output the file as XML. The each item is just built using your script just like a list of results would be built.
Logged

Barney McGrew
Sr. Member
****
Posts: 257


Resident Firefighter


View Profile WWW Awards
« Reply #2 on: December 12, 2007, 09:03:32 PM »

Cheers Sarah, I will look into that.
Logged
Barney McGrew
Sr. Member
****
Posts: 257


Resident Firefighter


View Profile WWW Awards
« Reply #3 on: December 23, 2007, 01:17:51 AM »

I basically just changed the text within this xml file to creat this http://www.fireservice.co.uk/recruit.xml

Is it just a simple case of altering this xml file and all those who have it listed within their feed software will see the changes once they are made.

Im pretty new to this bit, hence the questions.
Logged
samhs
Administrator
Hero Member
*****
Posts: 1711



View Profile WWW Awards
« Reply #4 on: December 23, 2007, 10:29:08 AM »

Add a new <item> each time. Alter these each time:

      <pubDate>Tue, 10 Jun 2003 04:00:00 GMT</pubDate>
      <lastBuildDate>Tue, 10 Jun 2003 09:41:01 GMT</lastBuildDate>

hth
Logged

Loose adj a not held together; not fastened or firmly fixed in place
Lose verb to misplace something. To fail to keep or obtain something, especially because of a mistake, carelessness, etc.
---
Blog: www.ohwrite.co.uk
Twitter: www.twitter.com/samhs
sarahA
DDN Contribs
Hero Member
*****
Posts: 2174



View Profile WWW Awards
« Reply #5 on: December 23, 2007, 05:16:11 PM »

Personally I just list the last X items. For example, take a blog feed. It usually has the last 10 items pulled dynamically from the database. So whenever someone requests it, it is dynamically generated there and then (well mine is!) and they will get the last 10 items. Feedreaders are designed to determine what's new and so only marks the new items as unread.

The change will of course show to the subscriber when their feedreader updates.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!