Re: Show output of program in realtime on website

From: Date: Wed, 10 Jan 2001 12:11:25 +0000
Subject: Re: Show output of program in realtime on website
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-33650@lists.php.net to get a copy of this message
""Brad Hubbard"" <brad@congosystems.com> schrieb: > Is there something you can do with a CGI lib that facilitates this? this one works: $fp = popen ("ping www.test.de -c 20", "r"); // output with delay // $fp = popen ("main", "r"); // one output, no delay while( $zeile=fgets($fp,100) ) { echo $zeile."<br>"; flush(); // flush output-buffer } maybe the problem is in the c-programm "main": int main() { int i; for(i=0;i<10;i++) { printf("Output: %i\n",i); sleep(1); } return; } any suggestions? Stefan

« previous php.general (#33650) next »