I believe what I need is to use the function flush(), but I don't understand how it should be done. Here is what I want to achieve:
As part of my code, I have a loop doing various stuff. For every iteration I increment a counter and I want to echo the value of this counter for every iteration. I believe I should use flush(), but how? Any examples would be great.
Thanks