Does anyone know if it is possible to detect whether the browser has closed the connection during the execution of a long PHP script, when using apache
PHP
apache
http://nz.php.net/register-shutdown-function
Probably less complicated if you just want a script to die and handle it when a user terminates.
( Ie: if it was a lengthy search, this would save you a bunch of operation cycles )