note 78662 added to function.ob-start

From: Date: Mon, 22 Oct 2007 13:40:50 +0000
Subject: note 78662 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-131628@lists.php.net to get a copy of this message
As a follow up to my previous post : (output seems to go to standard ouptput in command line mode even with the use of output buffering (ob_start) ) Setting implicit_flush to false seems to do the trick : ini_set('implicit_flush',false); // (avoids output even with ob_start, in command line mode) ob_start(); include (realpath(dirname(__FILE__))."/".$template); $ret_str.=ob_get_contents(); ob_end_clean(); ini_set('implicit_flush',true); (See : Chapter 43. Using PHP from the command line ) ---- Server IP: 217.174.196.197 Probable Submitter: 194.153.88.6 ---- Manual Page -- http://www.php.net/manual/en/function.ob-start.php Edit -- https://master.php.net/note/edit/78662 Del: integrated -- https://master.php.net/note/delete/78662/integrated Del: useless -- https://master.php.net/note/delete/78662/useless Del: bad code -- https://master.php.net/note/delete/78662/bad+code Del: spam -- https://master.php.net/note/delete/78662/spam Del: non-english -- https://master.php.net/note/delete/78662/non-english Del: in docs -- https://master.php.net/note/delete/78662/in+docs Del: other reasons-- https://master.php.net/note/delete/78662 Reject -- https://master.php.net/note/reject/78662 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131628) next »