W3C home > Mailing lists > Public > www-validator@w3.org > July 2006

Error Message Feedback php file.

From: R.Beeman <r.beeman@bee-man.us>
Date: Sat, 22 Jul 2006 18:10:41 -0400
To: www-validator@w3.org
Message-Id: <EA043731-19CE-11DB-84DC-00039355967A@bee-man.us>
Validating

I tried to validate a php page (index.php) that I wrote for my website.
When I tried to verify it directly, I got the error message below.  
When I changed the name of the file to index.html it verified OK.

The file is now at
http://www.bee-man.us/about_you/index.php

It is a demonstration to show what a web master can find out about 
visitors.

The obvious work-around was to just change the file extension to html, 
use the validator until it passes, then change the extension back to 
..php.  I did this, and found a lot of errors, which I corrected 
successfully.  So it looks like the validator is able to ignore all the 
PHP commands successfully and just look at the HTML, as long as the 
file extension is .htm or .html.  I where it found (and I corrected) a 
number of errors.

But couldn't the validator just be updated to accept PHP files and only 
check the HTML?  Or would this confuse people into thinking the PHP was 
being validated?

-Bob Beeman

Result:
  Failed validation

  File:
index.php

Encoding:

Doctype:


  Sorry, I am unable to validate this document because its content type  
is application/octet-stream, which is  not currently supported by this 
service.

  The Content-Type field 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).

  That you received this message can mean that your server is  not 
configured correctly, that your file does not have the correct  
filename extension, or that you are attempting to validate a file  type 
that we do not support yet. In the latter case you should let  us know 
that you need us to support that content type (please include  all 
relevant details, including the URL to the standards document  defining 
the content type) using the instructions on the
Received on Monday, 24 July 2006 17:40:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT