php shell_exec with realtime updating

前端 未结 5 749
予麋鹿
予麋鹿 2020-12-17 00:03

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

5条回答
  •  长情又很酷
    2020-12-17 00:52

    there are two possible behaviors:

    1. Non Block, where you need to do something else between flushs (@GameBit show how to do it).

    2. With Block, where you wait until the called command finish, in this case look passthru function

提交回复
热议问题