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
>
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]
""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)
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
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
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");
6 matches
Mail list logo