note 8695 added to header

From: Date: Sun, 24 Sep 2000 17:19:34 +0000
Subject: note 8695 added to header
Groups: php.notes 
Request: Send a blank email to php-notes+get-5428@lists.php.net to get a copy of this message
I have tried the following with both php3 and php4: When sending lots of header data, an extra Content-Type: text/html and Connection: close are often sent by php. PHP sends these headers when the content type hasn't been specified. If you don't want the extra headers sent, you must send the Content-Type seperatly from the other headers. i.e.: Header($LotsOfLinesOfHeaderData); Header("Content-Type: $ContentType"); works, but Header($LotsOfLinesOfHeaderDataIncludingContentType); doesn't. Best of luck. http://www.php.net/manual/function.header.php

« previous php.notes (#5428) next »