note 110707 added to outcontrol.examples.basic
| From: | tx at tshwarelo-leaka dot co dot za | Date: | Mon, 26 Nov 2012 06:35:29 +0000 |
| Subject: | note 110707 added to outcontrol.examples.basic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192147@lists.php.net to get a copy of this message | ||
On my environment which is XAMPP 1.8.0 for Windows (with PHP 5.4.4 & Apache 2.4.2) and
output_buffering = 4096 on php.ini, the above example does not show that infamous "...headers
already sent" warning. I had to send a bit of output before seeing this warning.
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
//ob_start();
echo "Hello\n";
echo str_repeat("=- :)", 900);
setcookie("cookiename", "cookiedata");
//ob_end_flush();
?>
----
Server IP: 69.147.83.199
Probable Submitter: 41.85.155.77
----
Manual Page -- http://www.php.net/manual/en/outcontrol.examples.basic.php
Edit -- https://master.php.net/note/edit/110707
Del: integrated -- https://master.php.net/note/delete/110707/integrated
Del: useless -- https://master.php.net/note/delete/110707/useless
Del: bad code -- https://master.php.net/note/delete/110707/bad+code
Del: spam -- https://master.php.net/note/delete/110707/spam
Del: non-english -- https://master.php.net/note/delete/110707/non-english
Del: in docs -- https://master.php.net/note/delete/110707/in+docs
Del: other reasons-- https://master.php.net/note/delete/110707
Reject -- https://master.php.net/note/reject/110707
Search -- https://master.php.net/manage/user-notes.php