This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help

 
Roman V
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I know ,connected user to the
internet or not?
Tnx
 
Gerd Rosarius
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahmm, I think you should specify your question a little more. Maybe you have a better chance to get a qualified answer then.
Greetings
Gerd
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am assuming that you want to know if your user is connected to the internet or not ...
I would try to get the HTTP headers from a known stable server (www.sun.com, www.cnn.com) ... if you get the headers, they are online, if not, they are not ...
you may want to try one or two different servers if the result is negative, just in case the server is down.
Hope this helps
 
Something must be done about this. Let's start by reading this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!