Jump to content

Archived

This topic is now archived and is closed to further replies.

kdevine

set content-type to xml

Recommended Posts

I'm using php to create xml content with header("Content-type: text/xml"); but it isn't working. I've been seraching for an answer and the closest I've come is some mention that I should check the server configuration. Could it be something with Apache or am I missing something else?

UPDATE:
Okay, so nevermind... I switched to header("Content-type: application/xml"); and it's working fine.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.