Jump to content

set content-type to xml


kdevine

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.
Link to comment
https://forums.phpfreaks.com/topic/6215-set-content-type-to-xml/
Share on other sites

Archived

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

×
×
  • Create New...

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.