Hey, i'm looking for some process control functions but can't find any, i want a function that terminates a function by name or PID with force, it also can not be tskill, is there any way to kill a process using PHP?

Help will be appreciated

    Tried pskill?

    To be honest, if you're forced into doing anything with exec() then there's probably a better language than php out there for what you need to do. If you can give us more information then we may be able to offer you better advice.

    A digital agency

      Well i need to have a webpage where you can execute programs through the webpage and kill them like server control

        you can use exec et al. to call any program\command that your php has access to

          Remember that if this is a web application, it will (normally) be executed as the Apache user, and as such can only kill processes it owns.

          If you're looking to spawn processes from within PHP, take a look at [man]proc_open/man and its related functions, including [man]proc_terminate/man.

            Write a Reply...