A hint for PHP beginners like me:
The buffered output which is write by fflush() has nothing to do with the output buffer which is initiated by the ob_start() function.(PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8)
fflush — Invia l'output in un file
Questa funzione forza la scrittura di tutto l'output bufferizzato sulla
risorsa puntata dal puntatore handle.
Restituisce true in caso di successo, false in caso di fallimento.
Il puntatore al file deve essere valido e deve puntare ad un file correttamente aperto da fopen(), popen() o fsockopen().
Il puntatore al file deve essere valido, e deve puntare ad un file aperto con successo da fopen() o fsockopen() (e non ancora chiuso da fclose()).
A hint for PHP beginners like me:
The buffered output which is write by fflush() has nothing to do with the output buffer which is initiated by the ob_start() function.