Page 1 of 1

Real time information display

Posted: Wed Jan 05, 2005 12:42 am
by myleow
How do you code in PHP so that the information are displaying in real time or near real time.

What i mean is the following..

The browser displayes:

Data Analyzer Initializing.

[after 2 sec]

Processing Data . . [after 1sec] . . . Completed

Merging Data . . [after 2 sec] . . . Completed.

Data Analyzer Completed without Error.


Is this possible with PHP? What language is this possible with?

Thanks

Regards
Mian

Posted: Wed Jan 05, 2005 1:08 am
by feyd
it's somewhat possible with php from what I've seen. This depends on if your host is using Apache, but [php_man]flush()[/php_man] can work. However, Apache buffers to some extent too.

Posted: Wed Jan 05, 2005 1:23 am
by myleow
So you just flush() everytime a process is completed? The host that i am using is Apache 1.3.33

I am still pretty new to PHP, so more info would be appreciated.

Posted: Wed Jan 05, 2005 1:41 am
by feyd
read through the flush function page..

Posted: Wed Jan 05, 2005 6:13 am
by Weirdan
feyd wrote:However, Apache buffers to some extent too.
And so do some browsers. To my knowledge IE does not start rendering until it has received 1K of data.

Posted: Wed Jan 05, 2005 9:13 am
by feyd
256 bytes.. at least that's the limit for a page to be "found".