You are here: Why does it wait before echoing? « All PHP « IT news, forums, messages
Why does it wait before echoing?

Posted by Mad Hatter on 08/04/07 19:57

Hi

I've written a little routine for backing up a large(ish) mysql database.
Basically what I want it to do is echo to the screen 'backing up table 1',
'backing up table 2' etc as it's going along. The routine runs along the
following lines

while ($i < $tables) {
echo "Backing up table $i";

opens a file here
it reads the table from the database here
writes it to a file here
closes file

}

I expected after each read/write it would output "Backing up table x" but
it reads/writes them all and then echoes all the backing up text in one go.
What am I doing wrong?

 

Navigation:

[Reply to this 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

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