Run php script as daemon process

后端 未结 14 1701
-上瘾入骨i
-上瘾入骨i 2020-11-22 11:36

I need to run a php script as daemon process (wait for instructions and do stuff). cron job will not do it for me because actions need to be taken as soon as instruction arr

14条回答
  •  忘掉有多难
    2020-11-22 12:28

    Check out https://github.com/shaneharter/PHP-Daemon

    This is an object-oriented daemon library. It has built-in support for things like logging and error recovery, and it has support for creating background workers.

提交回复
热议问题