Real time information display

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

Real time information display

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
myleow
Forum Contributor
Posts: 194
Joined: Mon Jun 21, 2004 7:05 pm
Location: California

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

read through the flush function page..
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

256 bytes.. at least that's the limit for a page to be "found".
Post Reply