Stream Output buffer - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Stream Output buffer (/showthread.php?tid=60942) |
Stream Output buffer - El Forum - 08-06-2014 [eluser]Unknown[/eluser] hi all, i have a long task running ( ftp uploads ) and i need enable output flushing how i can do it with CI ? im trying with ob_flush (tried also to se implicit flush ) but without success any one have a solution? Stream Output buffer - El Forum - 08-06-2014 [eluser]CroNiX[/eluser] Here's a helper I created to do that: Code: //kill CI's buffered output and stream realtime Depending on your usage, you might need to adjust the very last output (like you wouldn't want to output html to the CLI), but I use it in a browser so that's how I wrote it. To test you could just do: Code: kill_buffer(); |