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
PHP is server side. If you are making a web page, then the results will ALWAYS be shown on the client after the script ends and has been transmitted.
If you are running the script on your own computer, then I heard somewhere that one prints during execution and the other after the script is done. Try switching between print and echo and see how your results go.