Is it possible to send the output of a php script before the end of the script so we can make any unrelated operations to the output ?
Asked
Active
Viewed 505 times
0
-
1http://stackoverflow.com/questions/8882383/how-to-disable-output-buffering-in-php – Richard May 19 '16 at 14:33
-
I have no idea what you are asking about. Do you want to turn off output buffering? – Aleks G May 19 '16 at 14:33
-
Other than flushing the output? – Ignacio Vazquez-Abrams May 19 '16 at 14:40
1 Answers
0
yes you can :
on the top of the script define those :
ini_set("implicit_flush", 1);
while (@ob_end_flush());
ob_implicit_flush(true);
after any output (echo print or print_r) call thise two functions to flush it :
flush();
ob_flush();

ImadOS
- 425
- 3
- 14