note 108017 added to features.connection-handling

From: Date: Thu, 22 Mar 2012 14:12:28 +0000
Subject: note 108017 added to features.connection-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-186773@lists.php.net to get a copy of this message
tom lgold2003 at gmail dot com noted that there was some strange behaviour for him flushing the buffers. The behaviour is not strange, there are multiple buffers: <?php // start of the page, first buffer is normally enabled here ob_start();// this starts the second echo "test";// Write some content to buffer two ob_end_flush();// This closes buffer two and begins writting to buffer one. flush();// This outputs buffer one to the screen. ?> If you want to avoid this use a loop to close all the buffers: <?php // One by default ob_start();// two ob_start();// three // This closes each buffer until it fails, // probably because there are no more buffers left. while( @ob_end_flush() ); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 213.40.50.51 ---- Manual Page -- http://www.php.net/manual/en/features.connection-handling.php Edit -- https://master.php.net/note/edit/108017 Del: integrated -- https://master.php.net/note/delete/108017/integrated Del: useless -- https://master.php.net/note/delete/108017/useless Del: bad code -- https://master.php.net/note/delete/108017/bad+code Del: spam -- https://master.php.net/note/delete/108017/spam Del: non-english -- https://master.php.net/note/delete/108017/non-english Del: in docs -- https://master.php.net/note/delete/108017/in+docs Del: other reasons-- https://master.php.net/note/delete/108017 Reject -- https://master.php.net/note/reject/108017 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186773) next »