Re: RSS feeder in PHP5?

From: Date: Mon, 12 Jan 2009 11:09:43 +0000
Subject: Re: RSS feeder in PHP5?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-286076@lists.php.net to get a copy of this message
On Mon, 2009-01-12 at 11:02 +0000, 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'); > You actually mean application/xml not text/xml And its alot better to use DOMDocument in PHP5 for XML Creation rather than hardcode everything. Thanks > And the actual data: > > <?xml version="1.0" encoding="iso-8859-1"?> > <rss version="0.91"> > <channel>

« previous php.general (#286076) next »