-
From: "Alan Milnes" <[EMAIL PROTECTED]>
Sent: Thursday, November 11, 2004 11:24 AM
Subject: [WSG] Re: It's all in the MIME
> Thanks to everyone for all the help, suggestions and links.
>
> I've amended the code from
> http://www.workingwith.me.uk/articles/s
Thanks to everyone for all the help, suggestions and links.
I've amended the code from
http://www.workingwith.me.uk/articles/scripting/mimetypes/ to send IE
XHTML 1.0 and if anyone wants to borrow it then it can be found at:-
http://www.college.gameplan.org.uk/wsg/mimetype.txt
Alan
> From: Alan Milnes
> It's in the section "Accommodating legacy browsers" and the PHP code
> is:-
>
> if ( stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ) {
> header("Content-type: application/xhtml+xml");
> }
> else {
> header("Content-type: text/html");
> }
> ?>
That's not chan
Alan Milnes wrote:
Why is the content-type not sent? What errors or warnings does PHP
display? What content-type _is_ sent? What problems does Firefox have?
Some possible reasons for this script not to work:
- headers are already sent out by PHP;
- one ore more conditions are too narrow or wide (
> Why is the content-type not sent? What errors or warnings does PHP
> display? What content-type _is_ sent? What problems does Firefox have?
>
> Some possible reasons for this script not to work:
> - headers are already sent out by PHP;
> - one ore more conditions are too narrow or wide (especiall
Alan Milnes wrote:
So does anyone have a link to an article which can tell me how to
properly serve up application/xhtml+xml using PHP?
Jeroen Visser shared
http://www.workingwith.me.uk/articles/scripting/mimetypes/ as a link
before... that tells you how. The datestamp on the message was Thu, 11
N
> > So does anyone have a link to an article which can tell me how to
> > properly serve up application/xhtml+xml using PHP?
> Jeroen Visser shared
> http://www.workingwith.me.uk/articles/scripting/mimetypes/ as a link
> before... that tells you how. The datestamp on the message was Thu, 11
> Nov
> > It may not be the way to do it but it's the way it's taught at the
> > article you reference:
> > Oldie but goldie on the subject:
> > http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html
> Aeh...where exactly?
It's in the section "Accommodating legacy browsers" and the PHP code
is:-
I'v
> From: Alan Milnes
> It may not be the way to do it but it's the way it's taught at the
> article you reference:
> > Oldie but goldie on the subject:
> > http://www.xml.com/pub/a/2003/03/19/dive-into-xml.html
Aeh...where exactly?
Patrick
Patrick H. Lauke
Webmas
On Thu, 2004-11-11 at 20:28, Alan Milnes wrote:
> So does anyone have a link to an article which can tell me how to
> properly serve up application/xhtml+xml using PHP?
Jeroen Visser shared
http://www.workingwith.me.uk/articles/scripting/mimetypes/ as a link
before... that tells you how. The dates
> Taking a stab in the dark, I'd guess that all you did was change the
> "content type" meta to it. Well...that's not the way to do it.
It may not be the way to do it but it's the way it's taught at the
article you reference:
> Oldie but goldie on the subject:
> http://www.xml.com/pub/a/2003/03/1
11 matches
Mail list logo