I have a PHP script where I create a new process using proc_open().It executes for about 2 hrs, at the end I have a proc_close().
Sometimes I need to stop this process in the middle , how do I kill/signal it to stop and free up the resources in PHP
well firstly you could create a manual script that calls proc_close ( resource $process ) this would initally wait obviously for a response from the process or if you need to immediately terminate it you can call proc_terminate();
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