W3C home > Mailing lists > Public > www-validator@w3.org > September 2004

Re: [VE][55] Error Message Feedback

From: Olivier Thereaux <ot@w3.org>
Date: Thu, 2 Sep 2004 15:02:29 +0900
To: William Pracht <tgrk35@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20040902060229.GA14463@w3.mag.keio.ac.jp>

Hello William,

your php code
> <td width="25%" id="sides"><?php include("leftbar.php"); ?></td>

> <td width="25%" id="sides"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr...

and it should not. You should modify your "leftbar.php" to not output a
full HTML page, just the bits of HTML that are needed.

> Is php not allowed in XHTML documents?

That's not the point. PHP is server side, which means that the XHTML validator (or
browsers for that matter) cannot see any difference whether a page is
static XHTML or XHTML generated with PHP. The point here is not that
you're using PHP, but that you're misusing it.

Received on Thursday, 2 September 2004 06:02:31 UTC

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