|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-18 02:19 UTC] norny at yahoo dot com
I have a php shell script that outputs ~100 char lines using echo. I'm trying to work around the default php.ini configuration of a 4k automatic buffer and flush the lines to the console for debugging. Calling ob_flush() after each echo, echos the lines immediately, putting ob_end_flush() at the beginning of the script turns off ob so I get immediate output, but ob_implicit_flush() and ob_implicit_flush(1) don't seem to automatically flush after each echo. I have to wait till the end of the script execution to see the output when I try ob_implicit_flush. Using ob_end_flush() is my workaround for now. Same difference whether I use echo or print. This is for RC4. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 05:00:01 2025 UTC |
As of PHP 4.3.0 you can use an alternative php.ini named: php-{sapi}.ini, where {sapi} is the name of the sapi you are using. So, for the cli, php will look for php-cli.ini before it tries php.ini. For cgi it will look for php-cgi.ini etc.