Reply to Re: Sending output a bit at a time

Your name:

Reply:


Posted by Rik on 03/10/07 13:51

Neale O <flanders@simpsons.com> wrote:

> I need to perform some maintenance on local files stored on a webserver
> and wanted the PHP script to display the filenames as it goes (Rather
> than showing the page right at the end when everything is done).
>
> Can I get PHP to return a page a bit at a time every time an echo()
> occurs?
>
> Hand-holding not required! If someone can point me in the direction of a
> function or page in the manual I'm sure I'll pick it up. I've Googled a
> bit but without knowing what terms to use I'm a little lost.

http://www.php.net/flush
http://www.php.net/ob_flush

Keep in mind that if the server (usually Apache) caches the output itself,
you'll have to convince that server to send it. Most configurations I'm
familiar with will have not trouble though
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

[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

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