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
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
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
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:
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:
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
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.
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
...
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
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
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
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
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
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
14 matches
Mail list logo