Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> {XHTML} 1 warning(s)---validator.w3.org
-Libi-
post 7.04.2008, 18:32:56
Post #1





Goście







Mam problem podczas testów strony pojawia mi się blad:

Conflict between Mime Type and Document Type

The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml

Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:

If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.

LInk:
http://validator.w3.org/check?uri=http://8...ine&group=0

Link strony(tylko gdy moj komputer jest włączony):
http://85.31.230.167/index2.php

co powinienem zrobić by to poprawić jestem otwarty na pomysły... smile.gif

Pozdrawiam
Go to the top of the page
+Quote Post
wert1
post 7.04.2008, 18:34:56
Post #2





Grupa: Zarejestrowani
Postów: 175
Pomógł: 2
Dołączył: 22.03.2007
Skąd: localhost

Ostrzeżenie: (0%)
-----


  1. Conflict between Mime Type and Document Type
  2.  
  3. The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml
  4.  
  5. Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:
  6. If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.
  7. You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.
  8. If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.


--------------------
"Homo sum, humani nihil a me alienum puto."
"Necessitas ultimum et maximum telum est."
"Ventem seminabunt et turbinem metent."
"Gallia est omnis divisa in partes tres..."
Go to the top of the page
+Quote Post
-Libi-
post 7.04.2008, 19:12:03
Post #3





Goście







Jesteśmy w Polsce więdz prosił bym o ile macie coś pomuc to piszcie po Polsku i na temat... smile.gif
Go to the top of the page
+Quote Post
Pilsener
post 8.04.2008, 07:26:48
Post #4





Grupa: Zarejestrowani
Postów: 1 590
Pomógł: 185
Dołączył: 19.04.2006
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


Cytat
pomuc
- nie piszemy po polsku, bo mało kto zna ten język, a angielski zna prawie każdy. Wysyłasz dokument do przeglądarki jako text/html, co jest niezalecane dla standardu XHTML 1.1 strict. Zalecany typ dla tego standardu to application/xhtml+xml. Jeśli masz taki typ ustawiony w head a zwraca błąd, to musisz pokombinować z rozszerzeniem plików lub konfiguracją serwera.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 20.07.2025 - 16:50