Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3

Thread: [PHP]

  1. #1
    Join Date
    Apr 2006
    Posts
    1,463
    Tokens
    0

    Latest Awards:

    Default [PHP]

    Ok I have
    PHP Code:
    <?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
    PHP Code:
    connection_aborted() 
    Is connection_aborted() correct if I want to see if a client has disconnected.

  2. #2
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    Disconnected from what? I'm confused, and for once, the PHP manual held no answers...

  3. #3
    Join Date
    Apr 2006
    Posts
    1,463
    Tokens
    0

    Latest Awards:

    Default

    w3school.com/php its their not sure if right.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •