Re: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

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

From: Erwin Moller <since_humans_read_this_I_am_spammed_too_much@spamyourself.com>
Date: Fri Mar 31 2006 - 16:19:03 CEST

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
Received on Mon May 1 02:45:50 2006