Output buffer flush

software development

#1

Hello, I am tring to make my chat script flush evry 2 second to the browser but instead my screen locks. I use the ob_flush() and flush() php instruction but it does not work anymore, a week ago it worked. I dont know if i can change the system parameters to fix it or it is host side. EXAMPLE , this does not flush…

PLEASE HELP.

<?php // ******************** ob_implicit_flush (); echo " START "; ob_flush(); flush( ); $id = 0; while ( $id < 5 AND !connection_aborted( ) ) { $id ; echo " vvv $id .............................................. .............................................. \r\n"; ob_flush(); flush( ); sleep(3); } ?>