Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating an automated RSS or XML feed.



Rob Stearn wrote:

Aaaah you see, there lies the problem.
To make the document appear as the right document type i have to add a line to Apache, in the .conf file, that reads:


AddType application/rss+xml .rdf .xml

However, as I said in my original post, I can't amend the configuration of the hosting companies webserver in such a way.


How about putting this on the first line of your rss script?

   header('Content-type: application/rss+xml; charset=ISO-8859-1');

Should do the trick. Maybe you should replace the iso charset with UTF-8, depending on what you use.
BTW, I use b2 blogware, which adds a 'text/xml' content-type. Haven't tried that with a RSS reader, but I suppose that works too.


Good luck!

Max
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Creating an automated RSS or XML feed. (From: Rob Stearn <email@hidden>)
 >Re: Creating an automated RSS or XML feed. (From: Rob Stearn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.