Running a PHP script completely on server side

后端 未结 5 1829
眼角桃花
眼角桃花 2021-02-10 21:12

I\'m having a problem where putty gets regularly disconnected. So, when I run a PHP script from the terminal, it always gets interrupted. The script is supposed to run several h

5条回答
  •  攒了一身酷
    2021-02-10 22:03

    You need to prevent the process from terminating when the session disconnects.

    Something like this would work:

    nohup php myscript.php

提交回复
热议问题