Re: RSS feeder in PHP5?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux