note 110693 added to outcontrol.examples.basic

From: Date: Fri, 23 Nov 2012 06:19:11 +0000
Subject: note 110693 added to outcontrol.examples.basic
Groups: php.notes 
Request: Send a blank email to php-notes+get-192115@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/110693 Del: integrated -- https://master.php.net/note/delete/110693/integrated Del: useless -- https://master.php.net/note/delete/110693/useless Del: bad code -- https://master.php.net/note/delete/110693/bad+code Del: spam -- https://master.php.net/note/delete/110693/spam Del: non-english -- https://master.php.net/note/delete/110693/non-english Del: in docs -- https://master.php.net/note/delete/110693/in+docs Del: other reasons-- https://master.php.net/note/delete/110693 Reject -- https://master.php.net/note/reject/110693 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192115) next »