Re: [VE][55] Error Message Feedback

On Thu, 2 Sep 2004, William Pracht wrote:

> My code is actually this:
>
> <td width="25%" id="sides"><?php include("leftbar.php"); ?></td>

In terms of (X)HTML, it isn't. The (X)HTML document that a validator, a
browser, or other user agent gets is the data that results from the
PHP processing of the above. That is, it has no <?php ...?> stuff but the
data that PHP substitutes for it.

Thus, if you include something with PHP, the included file need not and
must not contain a DOCTYPE declaration, unless the include directive
appears at the start of a document where such a declaration is allowed.

-- 
Jukka "Yucca" Korpela, http://www.cs.tut.fi/~jkorpela/

Received on Thursday, 2 September 2004 07:46:19 UTC