Posted by Jerry Stuckle on 03/02/07 12:39
veg_all@yahoo.com wrote:
> I have a script that takes collects info from various websites to
> compile a report. However whenever I run it, my web browser waits for
> the script to finish ( 1 minute ) before displaying the report. But my
> script is outputting data every few seconds . So is there a way to
> make my browser display the web page every few seconds and update
> automatically as more data comes?
>
Two things can be happening here:
1. PHP and Apache are caching the data. Calling flush() should send it
to the browser
2. The browser itself is caching before displaying. Some browsers will
do this if they can't display things right away (i.e. a table without
columns and widths defined). Simplifying your HTML could help here.
I'd use AJAX as a last resort. It's way overkill for something like this.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|