Pierre-Henri Lavigne wrote:
Regards to http://www.w3.org/MarkUp/2004/xhtml-faq#ie I just discovered,
I was just wondering if we could use :
?php
if (stristr($_SERVER[HTTP_ACCEPT],application/xhtml+xml)) {
You need to check the q value.
e.g. If a browser sends this:
Accept:
On 2/11/07, Lachlan Hunt [EMAIL PROTECTED] wrote:
Pierre-Henri Lavigne wrote:
Regards to http://www.w3.org/MarkUp/2004/xhtml-faq#ie I just discovered,
I was just wondering if we could use :
?php
if (stristr($_SERVER[HTTP_ACCEPT],application/xhtml+xml)) {
You need to check the q value.
Subbu Allamaraju wrote:
On 2/11/07, Lachlan Hunt [EMAIL PROTECTED] wrote:
header(Content-Type: application/xhtml+xml; charset=UTF-8);
You don't need to include the charset parameter in this header for
XML MIME types (this does not apply to text/html). XML is designed
as a self describing
Quoth Pierre-Henri Lavigne at 02/11/07 05:03...
snip /
What do you think about ? I suppose if the trick works, everyone will
use it. I never heard about it before. Any informations / suggestions
about it ?
Setting MIME type by accept string for XHTML is certainly used - I use
it myself.
Matthew Smith wrote:
Quoth Pierre-Henri Lavigne at 02/11/07 05:03...
snip /
What do you think about ? I suppose if the trick works, everyone will
use it. I never heard about it before. Any informations / suggestions
about it ?
Setting MIME type by accept string for XHTML is certainly used -