Re: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- From: David Haynes <david.haynes2@xxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 09:01:01 -0500
Erwin Moller wrote:
Hi,Why not buffer the output at the backend (file or database) and then let the browser refresh on a cyclic basis?
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
-david-
.
- References:
- idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- From: Erwin Moller
- idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- Prev by Date: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- Next by Date: Re: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- Previous by thread: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- Next by thread: Re: idea needed: Longrunning PHP-script/continious stream/browser 'pagerenew'
- Index(es):
Relevant Pages
|