You are here: Buffer flush doesn't work quite as expected « PHP Programming Language « IT news, forums, messages
Buffer flush doesn't work quite as expected

Posted by David Cartwright on 08/03/05 14:41

Hi,

I've got a PHP script (running on MacOS X, PHP 4.1.12) which uploads
bookings from one database to another, and I'd like to have the screen show
progress as it happens (each time I process a booking, I write a line
summarising it to the browser with 'print')

From RTFMing and Googling, it seems that I should be able to do this by
turning output buffering on and using ob_flush() et al. However, this only
sort-of works, in that instead of getting output line by line, I get a
multi-line chunk on the browser from time to time.

Am I stuck with having this chunk-by-chunk visualisation, or can anyone
please suggest a way that I can make it force each line to the browser as I
write it?

Thanks in anticipation,

David C

 

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

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