PDA

View Full Version : [PHP]



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.

Beau
25-11-2007, 10:18 AM
Disconnected from what? I'm confused, and for once, the PHP manual held no answers...

Rockstar
25-11-2007, 10:22 AM
w3school.com/php its their not sure if right.

Want to hide these adverts? Register an account for free!