I would like to FLUSH() the completed variable (which are in a loop) to the users screen. This is working. However how do I clear the buffer, before outputing the next variable to the screen.???? I hope this is making sense.
Eg. Currently each buffer stays on screen, is their a way to clear them, before the next buffer???
function SendMail {
ob_start();
while ($i < $num) {
bla bla bla ;
mail($to, $subject, $bodymsg, $headers);
echo 'row';
$i++;
ob_flush();
flush();
sleep(1);
}
echo "Done.";
ob_end_flush();
Eg. Currently each buffer stays on screen, is their a way to clear them, before the next buffer???
function SendMail {
ob_start();
while ($i < $num) {
bla bla bla ;
mail($to, $subject, $bodymsg, $headers);
echo 'row';
$i++;
ob_flush();
flush();
sleep(1);
}
echo "Done.";
ob_end_flush();
Comment