Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- valid rss feeds?
November 18, 2004, 4:22 pm
rate this thread
my weblog. You can see what the script is currently outputting:
This doesn't validate at this validator:
It says I need to add a content type. Would it work if I changed the
first line of the RSS feed to this:
<?xml version="1.0" contentType="application/xml; charset=UTF-8"?>
Re: valid rss feeds?
On 11/18/2004 04:22 PM, lawrence wrote:
I think it is the server that has to set the content-type header to XML.
You may want to take a look at this popular RSS writer class that
generates and serves RSS documents properly:
PHP Classes - Free ready to use OOP components written in PHP
PHP Reviews - Reviews of PHP books and other products
Metastorage - Data object relational mapping layer generator
- » SunONE 6.1 / PHP 4.3.8 / Solaris 8 -> _db_return_ errors in log files
- — Previous thread in » PHP Scripting Forum