Re: Can't even make a simple test RSS feed
| From: | Manuel Lemos | Date: | Fri, 24 Jun 2005 20:28:47 +0000 |
| Subject: | Re: Can't even make a simple test RSS feed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217577@lists.php.net to get a copy of this message | ||
Hello,
on 06/24/2005 04:23 PM Brian Dunning said the following:
What am I doing wrong? This doesn't work. The browser does not even load the page, no error or anything: <?php echo '<?xml version="1.0"?><rss version="2.0"><channel>'; echo '<item>'; echo '<title>hdfghdf</title>'; echo '<description>dfghdfh</description>'; echo '<link>http://somelink</link>'; echo '</item>'; echo '</channel></rss>'; ?>It does not seem wrong, but I usually recommend a RSS 1.0 with all namespaces well-defined. I use this RSS writer class for generating RSS: http://www.phpclasses.org/rsswriter -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html