Results 1 to 2 of 2

Thread: Connection Handeling Doesn't Work in PHP

  1. #1
    Join Date
    May 2011
    Posts
    1

    Connection Handeling Doesn't Work in PHP

    I have read every single thing on connection handeling with no luck. What I want to do is simple.

    I want a user to be able to go to a website where when he loses connection to the site (because maybe wifi cut off) a timestamp is written to a file.

    So the flow would be this.

    1. user goes to www.testinternet.com
    2. user leaves his browser there
    3. when the user's internet disconnects, I write the time it disconnected to a file.

    Everything I have tried doesn't seem to detect the disconnect.

  2. #2
    Join Date
    May 2009
    Posts
    529

    Re: Connection Handeling Doesn't Work in PHP

    Inside in PHP a connection status is preserved. There are 3 probable states:
    0 - NORMAL
    1 - ABORTED
    2 - TIMEOUT

    While a PHP script is running usually the NORMAL state, is active. If the remote client disconnects the ABORTED state flag is switched on. A remote client disconnect is generally caused by the user hitting his STOP key. If the PHP-imposed time limit is hit, the TIMEOUT state flag is switched on.

Similar Threads

  1. Replies: 4
    Last Post: 04-06-2012, 04:27 PM
  2. BSNL modem doesn't work on parallel connection.
    By Talaketu2 in forum India BroadBand
    Replies: 5
    Last Post: 07-10-2010, 10:11 PM
  3. Replies: 3
    Last Post: 26-06-2010, 10:56 PM
  4. IE7 doesn't work
    By Carl Lewis in forum Windows Software
    Replies: 3
    Last Post: 03-06-2009, 12:23 PM
  5. Replies: 1
    Last Post: 06-01-2009, 12:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,410,224.91737 seconds with 16 queries