Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
On Wednesday 10 January 2001 13:11, Stefan Scherf wrote: > maybe the problem is in the c-programm "main": > > int main() { >int i; >for(i=0;i<10;i++) { > printf("Output: %i\n",i); The "\n" triggers a buffer flush if I'm not completely mistaken, so there shouldn't be a problem >

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Brad Hubbard
Have you tried passthru() instead of popen() ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Stefan Scherf
""Brad Hubbard"" <[EMAIL PROTECTED]> 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)

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Brad Hubbard
rf" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, January 10, 2001 22:21 Subject: Re: [PHP] Show output of program in realtime on website On Wednesday 10 January 2001 00:08, Stefan Scherf wrote: > the program "main" produces x times an output with an del

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
On Wednesday 10 January 2001 00:08, Stefan Scherf wrote: > 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). > Does anybody know how to realise this? Wri

[PHP] Show output of program in realtime on website

2001-01-09 Thread Stefan Scherf
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");