I use Ajax to kick off a PHP script that can take a few hours to run. It's done asynchronously so the PHP script will complete even if the browser is closed.
I need to handle any of these PHP scripts that have stalled/hung for whatever reason. What is the best way to go about this? Is there a way to get a process id for the PHP script that can be used to check for activity periodically? I need to kill any outstanding scripts before starting a new one.
Thanks, Brian