Re: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'



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-

.



Relevant Pages

  • scripting in CL -- please comment
    ... I had to write a simple script, and decided to do it in CL. ... message from mutt in the browser. ... "Return a random string of given length, ... "Return stream and path." ...
    (comp.lang.lisp)
  • idea needed: Longrunning PHP-script/continious stream/browser pagerenew
    ... I have a little problem figuring out something that solves the folowwing ... 1 script that can run for many hours. ... A browser that displays it. ... So the browser will receive a stream of information over hours, ...
    (comp.lang.php)
  • Re: Which Is The Better Approach To Working With Javascript?
    ... implementation has no interprocess communication capability, or ability to interface with a script interpreter. ... Java SCRIPT runs in the browser exclusively. ... No language is written just for a single environment. ...
    (comp.lang.php)
  • Controling Modal Dialogs
    ... In order to trap new windows created by script calls to window.open, ... Form and a new browser control in that tab. ... window.external.showModalDialog(dialog, varArgIn, varOptions);} ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Absolute element offsets--exercise in futility
    ... browser sniffing in lieu of feature testing. ... implemented in the latest rewrite of jQuery purports only to support ... it is dynamic script injection. ...
    (comp.lang.javascript)