PHP Classes

Php flush()

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Php flush()  
Subject:Php flush()
Summary:PHP 8.1 not flushing output to the screen with phpmailer 6
Author:Roberto Parker
Date:2022-11-13 02:28:27
Update:2022-11-13 05:52:50

  1. Php flush()   Reply   Report abuse  
Picture of Roberto Parker Roberto Parker - 2022-11-13 05:52:50

This code is working flushing to the screen ok


if (ob_get_level() == 0) ob_start();

for ($i = 0; $i<10; $i++){

echo "<br> Line to show.";

echo str_pad('',4096)."\n";





echo "Done.";



There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.

Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.