I have this shell program that I want to execute by php. The problem is that it can potentially take a long time, and as of that I need it to have real-time updating to the
there are two possible behaviors:
Non Block, where you need to do something else between flushs (@GameBit show how to do it).
With Block, where you wait until the called command finish, in this case look passthru function