You are here: Re: Learning HTML: building a Web Site: What do you think of this www? « HTML « IT news, forums, messages
Re: Learning HTML: building a Web Site: What do you think of this www?

Posted by Andy Dingley on 08/28/07 23:36

On Sat, 25 Aug 2007 09:28:50 +0100, "mrcakey" <nospam@spamispoo.com>
wrote:

>Am I doing something wrong then? I changed the content-type value for the
>index page to xml on the site I'm building for my friend
>
>http://www.ladolcevita.org.uk/

You only changed the embedded <meta>, which is over-ridden by the HTTP
content-type header:

HTTP/1.x 200 OK
Date: Tue, 28 Aug 2007 23:33:38 GMT
Server: Apache/1.3.33
Last-Modified: Sat, 25 Aug 2007 08:22:02 GMT
Etag: "1ca400d-f03-46cfe6aa"
Content-Length: 3843
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html
X-Pad: avoid browser bug

So you're still using text/html overall


> it still works fine as far as I can see. Even in IE6.

Change the header properly and it'll break in IE


Also, if you have to embed a comment like "Simon, start editing here and
remember to use tags", then well-formed XML just isn't going to last 5
minutes. Stick with HTML, you'll get better error recovery.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация