On 2 Dec 2003 10:10:12 -0800, [email]pedro_nf[/email] (Pedro Ferreira) wrote:
How about generating a graph in advance; when you load the page, display the>I present a screen to the user with a graph (PHP, GD lib) from data
>that comes from MySQL database, the page is auto-refreshed each 10
><META HTTP-EQUIV= "Refresh" CONTENT= 10>
>This is already working!
>The problem is that the query to get the data takes about 6 seconds to
>execute, during that time the browser (IE6) show me a blank page...
>Anyone know an easy solution for this? Any public libraries with this
graph generated in the previous step, and then start writing the next one to a
temporary file or into a session variable.
On the first display you'd have to generate two graphs (one to display now,
one for the next load). On the last display when the user closes the browser
you'll have wasted a graph generation, but presumably with such a frequent
refresh rate the user will be looking at quite a few graphs anyway.
Andy Hassall (andyandyh.co.uk) icq(5747695) ([url]http://www.andyh.co.uk[/url])
Space: disk usage ysis tool ([url]http://www.andyhsoftware.co.uk/space[/url])