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
myleow
Forum Contributor
Posts: 194 Joined: Mon Jun 21, 2004 7:05 pm
Location: California
Post
by myleow » Wed Jan 05, 2005 12:42 am
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Jan 05, 2005 1:08 am
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 » Wed Jan 05, 2005 1:23 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Jan 05, 2005 1:41 am
read through the flush function page..
Weirdan
Moderator
Posts: 5978 Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine
Post
by Weirdan » Wed Jan 05, 2005 6:13 am
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.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Jan 05, 2005 9:13 am
256 bytes.. at least that's the limit for a page to be "found".