Reply to Re: buffering headers before send

Your name:

Reply:


Posted by Claudio on 10/11/35 11:15

"M. Sokolewicz" <tularis@php.net> schrieb im Newsbeitrag
> ob_start buffers both `normal` output AND headers.

Humm, now it works...
Is there something else that must be set, so that ob_start() works or not?
Something like an php.ini entry?

Here is the listing of ob_start.php5

<?php
ob_start();
echo "hallo first<BR>";
$x = ob_get_clean();
ob_start();
header("X-Sample-Test: foo");
$h[0] = headers_sent();
$h[1] = headers_list();
echo "hallo second<BR>";
echo $x;
$x = ob_get_clean();
ob_start();
echo "hallo third<BR>";
echo $x;
header("X-Sample-Test: foo2");
$h[2] = headers_sent();
$h[3] = headers_list();
ob_end_flush();
echo "<PRE>";
var_dump($h);
echo "</PRE>";
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация