Rockstar
25-11-2007, 09:40 AM
Ok I have
<?php
function check_abort()
{
if (connection_aborted())
error_log ("Script $GLOBALS[SCRIPT_NAME]" .
"$GLOBALS[SERVER_NAME] was aborted by the user.");
} //some script to be executed here // Call the check_abort function when the script ends
register_shutdown_function("check_abort");
?>
and this is the bit Im not sure is working
connection_aborted()
Is connection_aborted() correct if I want to see if a client has disconnected.
<?php
function check_abort()
{
if (connection_aborted())
error_log ("Script $GLOBALS[SCRIPT_NAME]" .
"$GLOBALS[SERVER_NAME] was aborted by the user.");
} //some script to be executed here // Call the check_abort function when the script ends
register_shutdown_function("check_abort");
?>
and this is the bit Im not sure is working
connection_aborted()
Is connection_aborted() correct if I want to see if a client has disconnected.