Re: PHP

On Fri, 2 Jul 2004, John Fredsted wrote:

> I've a page which validates XHTML Strict when I validate the 'View
> source' of the client, but not when I validate by URL.
>  
> The problem is that the page is generated by PHP with redirects so that
> for instance the DOCTYPE-declaration cannot be put as the first line in
> the PHP document.

You are confused.  What happens within your server (e.g. PHP) is your
business - a browser or validator neither knows nor cares.  What you
serve should be valid, and is what a validator or browser sees.

-- 
Nick Kew

Received on Wednesday, 7 July 2004 18:12:06 UTC