output bufferring and tables
Posted: Fri Nov 15, 2002 11:17 am
I am using output buffering on a search page I have for my app. I would like to flush the buffers every so often, incase they did a huge search, to keep the screen updating. But I use a table and insert rows into the table and it seems to be stopping the browser from printing anything to the screen. I know the browser is getting the info from the web server becuase I can view source and see it while its processing. I ran this small test script to verify.
[syntax=php]<?
echo '<table>';
echo '<tr><td>one</td></tr>';
flush();
sleep(5);
echo '<tr><td>two</td></tr>';
echo '</table>';
?>[/syntax]
I don't think it's possible to make this work, the way I have it, since the browser can't draw a layout it doesn't fully know already, becuase of no end tags. But, if anyone has any ideas send em to me.
Thanks,
Keith
[syntax=php]<?
echo '<table>';
echo '<tr><td>one</td></tr>';
flush();
sleep(5);
echo '<tr><td>two</td></tr>';
echo '</table>';
?>[/syntax]
I don't think it's possible to make this work, the way I have it, since the browser can't draw a layout it doesn't fully know already, becuase of no end tags. But, if anyone has any ideas send em to me.
Thanks,
Keith