> I must be going blind... can't believe I actually missed that :S
>
> <![CDATA[
> <html>
> <?php
> header("Content-type: plain/html");
> // Broken, note the echo <html> tag above
> ?>
> ]]>
>
> Is this ok with everybody?
No ;) There is no point in providing that Content-type,
as HTML is the default. Also plain/html is not a valid
content type, text/html is. This is why I have proposed
that "Location: http://www.example.com/" header.
Also examples should start at the first character on the
line, and PHP code should not be indented with one space.
<![CDATA[
<html>
<?php
// This will give an error. Note the output
// above, which is before the header() call
header("Location: http://www.example.com/");
?>
]]>
Goba
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php