Sending output a bit at a time

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-10-2007
Neale O
 
Posts: n/a
Default Sending output a bit at a time

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!
Reply With Quote
  #2 (permalink)  
Old 03-10-2007
Rik
 
Posts: n/a
Default Re: Sending output a bit at a time

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0