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

Your name:

Reply:


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-

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация