sitenews page ?

Hi Kevin an mike,
Thanks will post when all done

Hi Kevin wood it be hard to turn that in to a rss feed thanks
Beau

Short answer… no it would not be very hard.

You already have the code to read the xml file containing the news and put it into an array.

To output an RSS feed simply means that you have to now output that data using an RSS feed format.

To output an RSS feed, you need to output the RSS header and then output each of the records using RSS XML format.

Normally, an RSS feed points to the page that contains the data so you would most likely want it to point to your news page. The date fields need to be full (include date and time), not just the date you are currently using to be usable in an RSS feed.

RSS feeds are very structured XML and need a lot of proper data in them. Not counting the required pre-entries you need… an item could look like:

<item> <title>News Title</title> <description>Description of the entry</description> <pubDate>Sun, 11 Jan 2009 12:11:27 -0700</pubDate> <guid isPermaLink="false">URL-TO-THE-PAGE/news.php?entry=####</guid> <link>URL-TO-THE-PAGE/news.php?entry=####</link> </item>

If the description contains other html code, you would need to protect it with CDATA entries.

You should be able to look at some of the published RSS feed php scripts to find the samples you need.

Hi Kevin could you meet mr in cat some time
Thanks Beau

Sure if you can catch me. Over the past couple days I’ve been online for very limited amounts of time and my access may be greatly limited or non-existent shortly for a period of 3-5 days to up to a month or so.

So if you see me, send me a PM and I will hop on…