You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sean Chittenden <se...@serverninjas.com> on 2000/04/02 19:26:03 UTC

Re: dynamically output messages on browser.

> I wrote perl script to out put messages. It is supposed to output one
> line per 4 seconds. while loop has sleep(4), then print messages until
> all messages print out.
>
> But the server did not output the result per 4 seconds instead output
> all of results after 40 seconds How can I control that. Thanks.

	Apache is buffering the output.  Put a "\n" at the end of your
print statements and you should be okay, or an alternative would be to use
$r->rflush after each print statement.  -sc

--
Sean Chittenden