title: PHP auto-kill a script if the HTTP request is cancelled/closed
body: <p>The problem is that for a long process the PHP script keeps on executing whether or not the client browser is currently connected or not. Is there any possibility that if the client has terminated the Ajax call to a script then the script also terminates on server?</p>