#5960 [Opn->Csd]: Output buffering and headers
| From: | bjori@php.net | Date: | Sun, 07 Jan 2007 11:14:00 +0000 |
| Subject: | #5960 [Opn->Csd]: Output buffering and headers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-107270@lists.php.net to get a copy of this message | ||
ID: 5960
Updated by: bjori@php.net
Reported By: wico at cnh dot nl
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0 Latest CVS (04/08/2000)
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
headers_list() is available as of PHP5.0.0
Previous Comments:
------------------------------------------------------------------------
[2000-08-04 12:40:17] wico at cnh dot nl
I d like to see some new function in php working with output buffering
and headers
i really like to change the headers that are send elsewhere in the
script and/or by php
maybe you can make these functions:
$raw = ob_get_headers();
headers as the way the go to the client (separated by \n?)
$array = ob_get_headers_array();
$array like:
$headers[content-type] = "text/plain"
and ob_clean_headers
to put all the current headers in /dev/null
i can use the functions for:
1. the sessions i made in php
2. to compress pages as gzip
and i guess there a a lot of other options other can/will think about
caps (efnet/#php) started making these functions somethime but he run
out of time before he could finsh the (he got it working for cgi
without killing childs :)
i'm not a c programmer (it there where i 48 hours in a day i could
learn it :)
so i'am asking i someone / you can make them please
since you can put headers (with outputbuffering on) after your html
(and so are stored somewhere in memmory) i guess it would be to hard to
change/clean them and so making those function
Anyway i would be real glad i someone could do this
script would look kinda this:
<?
ob_start();
header("content-type: text/html");
...
$headers = ob_get_headers();
Ob_Clean_Headers();'
$headers[content-type] = "text/plain";
//output new headers
...
?>
Tnx in advance
Greetz,
Wico
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=5960&edit=1