|
Posted by David Haynes on 03/31/06 17:01
Erwin Moller wrote:
> Hi,
>
> I have a little problem figuring out something that solves the folowwing
> problem:
> 1) 1 script that can run for many hours (days).
> It will output regulary some information.
> 2) A browser that displays it.
>
> So the browser will receive a stream of information over hours, and the php
> script will output it (using flushing probably to make sure the browser
> knows the stream is still alive.)
>
> Ideally I would like to give the browser some command to throw away all the
> old output to keep it fast and not having megabytes of info on the page.
>
> But that means a new http-request, which doesn't suit my needs.
>
> AFAIK this is not possible, but if it is possible somehow, please tell me.
> If you think it is completely impossible, also please tell me. :-)
>
> Thanks for your time.
>
> Kind regards,
> Erwin Moller
Why not buffer the output at the backend (file or database) and then let
the browser refresh on a cyclic basis?
-david-
Navigation:
[Reply to this message]
|