Show output of program in realtime on website

From: Date: Tue, 09 Jan 2001 23:08:07 +0000
Subject: Show output of program in realtime on website
Groups: php.general 
Request: Send a blank email to php-general+get-33577@lists.php.net to get a copy of this message
Hi, the program "main" produces x times an output with an delay of 1 second between each output. I want to show this output in "realtime" on a website (this should become a progress-bar). The following code shows the output a f t e r the program ends: CODE... $fp = popen ("./main", "r"); // execute the program while( $zeile=fgets($fp,100) ) { // read and show output echo $zeile; flush(); // ?realtime? } pclose($fp); // close pointer ...CODE Does anybody know how to realise this? Greetings Stefan PS: Linux, PHP4

« previous php.general (#33577) next »