note 110707 deleted from outcontrol.examples.basic by googleguy

From: Date: Mon, 26 Nov 2012 15:33:29 +0000
Subject: note 110707 deleted from outcontrol.examples.basic by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-192148@lists.php.net to get a copy of this message
Note Submitter: tx at tshwarelo-leaka dot co dot za ---- 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(); ?>

« previous php.notes (#192148) next »