Is there a way to kill a Windows process, say calc.exe
, with PHP without using exec
?
exec
calls an external program, I try to avoid using that command unless necessary.
There is.
Use the W32api
PHP extension, which provides access to the Win32 API - then use the TerminateProcess()
API after aquiring a handle to the process.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With