This is a discussion on Sending output a bit at a time within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I need to perform some maintenance on local files stored on a webserver and wanted the PHP script to display ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. Thanks all! |
|
|||
|
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 |