Welcome Guest, Not a member yet? Register   Sign In
Serving with different mime types
#1

[eluser]Clooner[/eluser]
I want to serve my application with a different mime type then normally I would use a php code similair. This is how I would do it normally.
Code:
header("Vary: Accept");
if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml"))
    header("Content-Type: application/xhtml+xml; charset=utf-8");
else
    header("Content-Type: text/html; charset=utf-8");
or I could also set it with apache and the extensions.

My question is: Is there a way with codeigniter config to set a different or default mime-type which is not text/html?


Messages In This Thread
Serving with different mime types - by El Forum - 10-19-2007, 03:45 AM
Serving with different mime types - by El Forum - 10-19-2007, 05:06 AM
Serving with different mime types - by El Forum - 12-10-2007, 01:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB