Reply to Re: Progress indicators on a page...?

Your name:

Reply:


Posted by ZeldorBlat on 06/21/06 14:04

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.

The browser is free to buffer things however it likes, but you could
try putting a flush() somewhere in there to force PHP to send its
output. So:

/* echo some text */
flush();
/* echo some more text */
flush();
/* etc... */

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация