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 -- ht
tp://www.php.net/manual/en/function.ob-start.php
Edit -- https://master
.php.net/note/edit/78662
Del: integrated -- h
ttps://master.php.net/note/delete/78662/integrated
Del: useless -- http
s://master.php.net/note/delete/78662/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/78662/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78662
Reject -- https://mast
er.php.net/note/reject/78662
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|