Citation:
<?php
    if ( ob_get_level() == 0 )
    {
    ob_start() ;
    }
    for ( $i = 0 ; $i < 10 ; $i++)
    {
    echo "email envoyé !<br>";
    flush() ;
    ob_flush() ;
    sleep(1) ;
    }
    
    ob_end_flush() ;
?>