I do not know if this is either a problem in PHP or APACHE, but I wanted to print some of the result even if the script is still running.
What I mean is, since my for loop is a long script, i wanted to print some of the finished result on that for loop. But what happens is, it will just load the page, echoing nothing, and it will just show stuffs up when the script is done loading, all at once.
P.S. That is when using wamp… when I load the script on my website online, it would print some of the results and adds some more result until the script is finished loading.
If you have output buffering on then add
at the beginning of your script to turn it off, this only affects the script it is in.
If you want to turn it off far the whole site set
output_buffering = Offin php.iniYou can also do it in your .htaccess file.