Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: header('Content-Type: text/xml'); And the actual data: ?xml version=1.0

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
item title!-- The title of your feed --/title Oops, that should be the title of the individual article. -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General Mailing List

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread clive
Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg: header('Content-Type: text/xml'); I was just

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Craig Whitmore
On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg:

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Craig Whitmore wrote: On Mon, 2009-01-12 at 11:02 +, Richard Heyes wrote: Is there something in PHP5 which can generate the RSS feed? You don't need an extension to help you generate an XML feed. You dimply output XML data instead of HTML and send an appropriate content type header, eg:

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Nathan Rixham wrote: here's an example / test code: $title = stripJunkSimple(stripslashes(htmlentities($item['title']))); there are a couple of custom functions in this script i forgot to pull out so stripJunkSimple can be removed and the db lookup replaced with you're own - just sample

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
header('Content-Type: text/xml'); You actually mean application/xml not text/xml Well, no. I use text/xml and have done for nearly 5 years, and it works fine. And its alot better to use DOMDocument in PHP5 for XML Creation rather than hardcode everything. DOMDocument would be overkill.

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Nathan Rixham
Richard Heyes wrote: header('Content-Type: text/xml'); You actually mean application/xml not text/xml Well, no. I use text/xml and have done for nearly 5 years, and it works fine. it does, but in 2006 it was upgraded to application/rss+xml for all rss versions; all the

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
... Suppose I should change my feed then. At some point... :-) -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
hope you're well today Well, I have a bit of runny nose, and as usual it's frickin' freezing (the joys of rat poison). But other than that fine thanks. You? -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 4th) -- PHP General

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread ceo
You actually mean application/xml not text/xml That depends on if you want the Userland RSS standard or the Other [blanking on name] RSS standard. Unfortunately, the RSS camps are still at war over syntax and required elements, and there are 9 mutually-incompatible often-used versions of

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Eric Butera
On Mon, Jan 12, 2009 at 11:02 AM, c...@l-i-e.com wrote: You actually mean application/xml not text/xml That depends on if you want the Userland RSS standard or the Other [blanking on name] RSS standard. Unfortunately, the RSS camps are still at war over syntax and required elements, and

Re: [PHP] RSS feeder in PHP5?

2009-01-12 Thread Richard Heyes
Unfortunately, the RSS camps are still at war over syntax and required elements, and there are 9 mutually-incompatible often-used versions of the RSS standard over the years, with TWO current 2.0 standards You have to try to hit the lowest common denominator and test in many RSS

[PHP] RSS feeder in PHP5?

2009-01-11 Thread Michelle Konzack
Hello, on my website I have a NEWS section on http://www.tamay-dogan.net/?what=news and the news are stored in a SQL table with date, summary, fulltext Now I like to add an RSS feed with something like http://www.tamay-dogan.net/?what=newsaction=rss which require only an additional