Help - Search - Members - Calendar
Full Version: W3 Validator Does Not Validate Index.php File
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
ElenaDD
Hello,

I went to http://validator.w3.org and I tried to validate my index.php file, but it gives me the following message:

Sorry, I am unable to validate this document because its content type is application/x-php, which is not currently supported by this service.
The Content-Type header is sent by your web server (or web browser if you use the file upload interface) and depends on its configuration. Commonly, web servers will have a mapping of filename extensions (such as ".html") to MIME Content-Type values (such as text/html).



I don't have a clue why this is so. I believe it is not good if your site is not validated...
Any suggestions will be much appreciated.
swordz
Somewhere in the header you have written content="application/x-php". Although you have written a php file, after processing it is sent as a xhtml file, so this should read content="text/html". My entire meta tag for this element is:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

This should allow it to be validated.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.