Re: cvs: phpdoc /en/reference/http/functions header.xml

From: Date: Fri, 03 Jan 2003 19:51:16 +0000
Subject: Re: cvs: phpdoc /en/reference/http/functions header.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969350613@lists.php.net to get a copy of this message
> 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

« previous php.doc (#969350613) next »