Error Message Feedback php file.

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 UTC