Hi all,
I am running a script that processes files line by line.
It takes a while so I would like to echo a status update with each line so we can see where we are in the process.
I started reading on the output buffers but that doesn't do what I want.
My code (with the essential lines here) is:
<?php
ob_start();
echo 'Start the process';
ob_flush();
// here I open a file and read it into an array, left out to keep it simple.
foreach ($uniqlist as $regel)
{
echo 'we are on line ' . $regel .' <br>';
ob_flush();
}
echo 'Finished';
ob_end_flush();
?>
Any ideas of why the output buffering is not doing what I expected?