How to get list of running php scripts using PHP exec()?

前端 未结 4 1202

I need to know and kill if there is any processes running a specified PHP script. Is that possible to get list of processes running sample.php using exec() and a php script.

4条回答
  •  独厮守ぢ
    2020-12-17 04:03

    There isn't. Because PHP is ran through apache/nginx. In case of command-line-access, proccess is named PHP, not actual name of your script.

提交回复
热议问题