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



Sjoerd wrote:


Erwin Moller wrote:
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.

The script could save its output to a file, which is repeatedly loaded
by a browser. Javascript can be used to refresh the page once in a
while.

Alternatively, you can make a Java applet which receives the data on a
socket.

Thanks David and Sjoerd,

I think storing the 'parts' (I want to spit out to HTML) in the database
with some time-index, which I poll from the client (using JS) is indeed a
good solution.
It gives me the flexibility to retrieve some pieces from the 'past' too in
the browser.
Easy actually, once you think of it. :-)

Thanks for your prompt responses!

Regards,
Erwin Moller
.



Relevant Pages

  • Re: Not Enough Storage Error during XML transformation
    ... "Erwin Moller" ... XML file have 4000+ records. ... Or your customer with another machine, browser, OS, browserversion, etc. ... A good general solution would be to implement some sort of pagination. ...
    (comp.lang.javascript)
  • Re: idea needed: Longrunning PHP-script/continious stream/browser pagerenew
    ... Erwin Moller wrote: ... A browser that displays it. ... The script could save its output to a file, ... socket. ...
    (comp.lang.php)
  • Re: Let script finish even users close their browser
    ... Erwin Moller said the following on 29/09/2006 10:55: ... When I run my script, it will take a very long time. ... because AFAIK the server is working on a request and has no open line to the state of the visitors browser. ... If the browser is closed whilst the script is still processing, then the server *will* know about this, because the TCP connection will be terminated. ...
    (comp.lang.php)
  • Re: disable browser to offer to remember values in forms.
    ... >> Does anybody know if it is possible to suggest to the browser to NOT ... >> TIA ... >> Regards, ... >> Erwin Moller ...
    (comp.lang.javascript)
  • Re: Dynamic field name in object
    ... Erwin Moller wrote: ... Anyone who slaps a 'this page is best viewed with Browser X' label on ... a Web page appears to be yearning for the bad old days, before the Web, ...
    (comp.lang.javascript)