Is it possible to tag a PHP process and kill it if necessary?
Why? I have a jQuery application, when the user "saves", the POST is sent to my PHP script. The PHP script is quite intense and may take some time, but the processing is done on the server behind the scenes and is transparent to the user (when I say "transparent", I mean that the user can do things in jQuery on the front panel, and you don’t understand that PHP script is still being processed). Thus, it is possible that the user will save again before the completion of the first PHP save operation.
So my question is: how can I kill the last PHP save process (if it is not finished yet) and start the save process again?
source
share