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


From: Gmail Directeur <directeur@gmail.com>
Date: Sat, 21 Oct 2006 20:45:19 +0200
Message-ID: <9ddf33ea0610211145rad715a5l42de1ef3a3b8929d@mail.gmail.com>
To: "Cindy Blount" <afbckb@mchsi.com>
Cc: www-validator@w3.org

Hi Cidy,

> I am new to PHP and have had problems with validating my code. I have been told that W3C's validating services does not validate php, asp etc…
> Can anyone tell me if this is true?

No, but the validator validates the HTML generated by your php (asp..) scripts.
Lets say your php script is this one:

echo "<html><body>";
echo "<h1>I am a header</h1>";
echo "</body></html>";

The validator won't look to the eventual errors in this php script,
but it will look at the stuff that this script will display (echo)
In other words it will validate the thing that your php app will send
to the browser, since the validator is itself like an agent.

so it will validate this:
<html><body><h1>I am a header</h1></body></html>

Received on Saturday, 21 October 2006 18:45:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:50 UTC