Topic: XHTML - which MIME type do you use? (and how) (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-01-2005 19:01 |
Paranoid (IV) Inmate From: Florida |
posted 07-01-2005 19:14
You should use application/xhtml+xml - that is the proper type. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-01-2005 19:31
That's the impression that I got, although I'm having a hard time getting it work right for pages with a .php extension. I used <meta http-equiv="Content-Type" content="application/xhtml+xml;" /> in the head, but that didn't work. I also tried using an .htaccess file with |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 07-02-2005 16:43
how about calling header('Content-type: ...'); in php (and I believe it's spelled 'Content-type', lower case t) |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-02-2005 23:34 |
Paranoid (IV) Inmate From: France |
posted 07-02-2005 23:43
That's what I do on a site in XHTML1.1 : code: $encodingType = "utf-8"; $acceptXml = stristr( $_SERVER["HTTP_ACCEPT"], "application/xhtml+xml" ); if( $acceptXml ) header( "Content-type: application/xhtml+xml; charset=". $encodingType ); else header( "Content-type: text/html; charset=". $encodingType ); |
Paranoid (IV) Inmate From: Cold Sweden |
posted 07-03-2005 00:11
quote: That would have no effect since the parser must know how to parse it before seeing that meta element. quote:
quote:
quote:
quote:
|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-03-2005 03:29
I used, via a PHP header code: Date: Sun, 03 Jul 2005 01:23:04 GMT Server: Apache/1.3.31 (Unix) DAV/1.0.3 mod_gzip/1.3.26.1a mod_fastcgi/2.4.2 PHP/4.3.10 mod_ssl/2.8.19 OpenSSL/0.9.6c X-Powered-By: PHP/4.3.10 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: application/xhtml+xml; Content-Encoding: gzip Content-Length: 1050 200 OK
|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-03-2005 04:15
Okay - I got it figured out. My <html> at the beginning of the document was |
Paranoid (IV) Inmate From: Cold Sweden |
posted 07-03-2005 11:32
quote:
quote:
quote:
|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-03-2005 14:46
quote:
quote:
quote:
|