what was the way to print results from a php script while it\'s printing stuff before the script ends? i tried to play with output buffer, putting sleep() between echos to t
There are 2 solutions:
1) Deactivate the output_buffering in php.ini
2) When using loops use this for example:
for ($i = 1; $i <= 3; $i++) { echo md5(rand()).""; flush(); ob_end_flush(); sleep(1); }