been trying to figure this one out for a couple of hours now. No luck.
I am trying to build a system that can run reports (running scripts in the background) using shell_exec.
The following code starts the script that runs the report:
shell_exec("php /var/www/html/lab-40/test/invoice_reminder.php");
Now how would I go about ending that script execution using PHP?
I've tried things like PIDS but I have no clue how I would go about this. Thanks for the help in advance!
EDIT: I am not trying to end the process if the e.g tab is closed.