Re: Progress indicators on a page...?



On Tue, 20 Jun 2006 13:07:13 +0000, no wrote:
I have a PHP script that updates a very large table and in the code I echo
some text to show the progress of the update but the text only appears
when the page has finished displaying.

Is there any way (through html headers?) to force the page to update in
real time, while the PHP script is still executing?

I'd say go with AJAX. It's really not hard to learn, and as it's a
non-essential function if people don't have it, they can do without.

You could then provide an estimate of the time to completion (using number
of rows complete, number to be completed and number completed in last
second).

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

.



Relevant Pages

  • Re: Progress indicators on a page...?
    ... On Tue, 20 Jun 2006 15:49:03 GMT, Andy Jeffries ... some text to show the progress of the update but the text only appears ... real time, while the PHP script is still executing? ... I have had a look at Ajax ... ...
    (comp.lang.php)
  • Re: [PHP] Re: Something you can do with AJAX + PHP as well
    ... want to let the user know in real time what the progress is, ... But for some, instead of understanding what the demo was doing, made statements that it was an overkill that could be done more simply by using javascript alone, which was absolutely not true and clearly demonstrated that they didn't understand the demo. ...
    (php.general)
  • Re: [PHP] Re: Something you can do with AJAX + PHP as well
    ... tedd wrote: ... want to let the user know in real time what the progress is, ... but it doesn't require any ajax either. ...
    (php.general)
  • Access 2003 Reports and Charts on SharePoint
    ... I run various reports periodically to check progress. ... like to "link" a SharePoint site to the DB so these reports would ... be available in real time. ... in a chart format? ...
    (microsoft.public.sharepoint.portalserver)