Re: Is the website ok?
Neal wrote:
[color=blue]
> I use this precise snippet in my experimentation s. I have yet to
> implement this in an actual live site.[/color]
You probably shouldn't.
[color=blue]
> <?
> if(stristr($HTT P_SERVER_VARS["HTTP_ACCEP T"],"applicatio n/xhtml+xml")){
> header("Content-Type: application/xhtml+xml; charset=UTF-8");
> echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">') ;
> } else {
> header("Content-Type: text/html; charset=UTF-8");
> echo ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
> }
> ?>
>
> It works like a charm. No problems detected. I'd appreciate a heads up
> on what problems this could create.[/color]
Have you figured out how to process if-modified-since and
if-none-match headers? How to send 304 Not modified if the situation
calls for it? What do you hope to gain from xhtml+xml?
--
Brian (remove ".invalid" to email me)
Neal wrote:
[color=blue]
> I use this precise snippet in my experimentation s. I have yet to
> implement this in an actual live site.[/color]
You probably shouldn't.
[color=blue]
> <?
> if(stristr($HTT P_SERVER_VARS["HTTP_ACCEP T"],"applicatio n/xhtml+xml")){
> header("Content-Type: application/xhtml+xml; charset=UTF-8");
> echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
> "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">') ;
> } else {
> header("Content-Type: text/html; charset=UTF-8");
> echo ('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
> }
> ?>
>
> It works like a charm. No problems detected. I'd appreciate a heads up
> on what problems this could create.[/color]
Have you figured out how to process if-modified-since and
if-none-match headers? How to send 304 Not modified if the situation
calls for it? What do you hope to gain from xhtml+xml?
--
Brian (remove ".invalid" to email me)
Comment