note 78662 deleted from function.ob-start by cmb
| From: | cmb@php.net | Date: | Sun, 14 Jul 2019 11:28:43 +0000 |
| Subject: | note 78662 deleted from function.ob-start by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211578@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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
)