If a long running php script is created in a LAMP stack, using:
set_time_limit(0);
header("Connection: close");
ignore_user_abort(true); // just to be safe
ob_start();
$size = ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();
session_write_close();
//Some long running code here
In what ways could this script subsequently be terminated externally (to the script itself)?