Is it wise to use PHP for a daemon?

前端 未结 17 1448
庸人自扰
庸人自扰 2020-11-28 09:18

I wish to create a background process and I have been told these are usually written in C or something of that sort. I have recently found out PHP can be used to create a da

17条回答
  •  臣服心动
    2020-11-28 09:58

    One problem with properly daemonizing a PHP script is that PHP doesn't have interfaces to the dup() or dup2() syscalls, which are needed for detaching the file descriptors.

提交回复
热议问题