By: TomH
Date: 2006-07-16
Time: 14:52
|
How to send Content-Type header? (for RSS xml feed)
Hello,
I'm stumped - how do I create an RSS feed? ((like the one you get when you click the RSS button in the TBS 2.0b1 forum))
Making the XML content is not the problem...
But I cannot seem to see how to get TBS to send the header so that the browser sees the output as XML
Using standalone PHP I would do:
header("Content-Type: text/xml; charset=utf-8"); |
So, how do I send the Content-Type header from inside TBS???
|
By: NeverPanic
Date: 2006-07-16
Time: 15:48
|
Re: How to send Content-Type header? (for RSS xml feed)
You can't use TBS to send the header, you just have to put your header php line into the php file where you $tbs->LoadTemplate('the TBS template');.
If $tbs->Show(); sends a different header, you might try $tbs->render(); instead.
|
By: NeverPanic
Date: 2006-07-16
Time: 15:48
|
Re: How to send Content-Type header? (for RSS xml feed)
forgot a little thing... just download the TBS forum to see an example.
|
By: Skrol29
Date: 2006-07-16
Time: 20:53
|
Re: How to send Content-Type header? (for RSS xml feed)
Hi,
The TBS forum just send a
header('Content-Type: text/xml'); |
the way NeverPanic described above.
That is the same for the Excel plug-in which makes XML-Excel files.
|
By: TomH
Date: 2006-07-17
Time: 01:37
|
Re: How to send Content-Type header? (for RSS xml feed)
Neverpanic and Skrol,
Thanks, for helping. Elle va!
|
|
Posting in progress.
Please wait...
|