Posted by Martie on 06/20/06 17:20
On Tue, 20 Jun 2006 12:38:32 GMT, no@emails.thx wrote...
>
>Hi
>
>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 have seen similar thngs on webmin pages when it is downloading
>updates and it is nothing fancy (graphics etc) - just text.
>
>Thanks
>Chris R.
You might get a blank screen while the task completes, if you have your page
content enclosed in <table> tags. That usually happens because the closing table
tag won't load up until the rest of the page is ready.
The found the following link that describes that a little better, but also
offers a way to create a status bar for slow download pages using Javascript
that might be helpful.
http://www.codeproject.com/jscript/PageLoad_ProgressBar.asp
Martie
--
Unlimited Newsgroups Downloads / $19.95 month
More Details - http://newsguy.com/overview.htm
[Back to original message]
|