#22603 [Opn->Fbk]: Can't set content-length
| From: | sniper@php.net | Date: | Mon, 10 Mar 2003 16:43:50 +0000 |
| Subject: | #22603 [Opn->Fbk]: Can't set content-length | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35281@lists.php.net to get a copy of this message | ||
ID: 22603
Updated by: sniper@php.net
Reported By: mcmunn at mcmunn dot com
-Status: Open
+Status: Feedback
-Bug Type: Unknown/Other Function
+Bug Type: Apache2 related
Operating System: FreeBSD 4.7
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-03-08 03:26:25] mcmunn at mcmunn dot com
I can't set the content-length via the header() function. I am setting
the content-type and other header fields, this is making me bonkers.
Even the most simple sample:
<?
ob_start();
?>
Put HTML tags.
<?
$size=ob_get_length();
header("Content-Length: $size");
ob_end_flush();
?>
will fail. I have apache 2.0.43 and PHP 4.3.0
Any help is much appreciated.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22603&edit=1