""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) ) {
   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



-- 
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]

Reply via email to