David T-G wrote:
Jason, et al --
...and then Jason Barnett said...
% >Is there any way I can tell the web browser to start trickling the data
% >onto the page?
% % As Torsten so kindly pointed out to me before, your friend is the % flush() function:
% http://www.php.net/flush
Aha! It looks like it's just my browser, since even flush() didn't help me but when I started poking around under Win (ugh!) both Mozilla and IE scrolled the data down the screen.
The manual seems to frown upon using flush(), so I'll experiment with it some more, but I suspect that Linux/LYNX simply won't do this for me and that's no big deal since few of our customers use it.
The effect is going to be different for everyone, as you've found out, based upon their browser, ISP, your server setup, etc. The output could be cached and held at any point along the way from you to them regardless if you're using flush() in your PHP script. If you use tables, it'll be handled differently, too. Some browsers won't render a table until the </table> is received.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php