Current time: 04-23-2014, 12:34 PM Hello There, Guest! (LoginRegister)

Post Reply 
OUTPUT BUFFER FLUSH
01-06-2006, 01:14 PM
Post: #1
OUTPUT BUFFER FLUSH
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);

}

?>
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: