Testing if there is an Internet Connection

Sivakatirswami katir at hindu.org
Fri Nov 30 23:51:12 EST 2007


Dave wrote:
> Hi all,
>
> Is there a way to test if the machine you are running on currently 
> connected to the Internet?
>
> Thanks a lot
> All the Best
> Dave

I use a "baby face" method where the goal is to be
sure they are talking to our own servers

put a file your web site:

ping.txt

put the word "true" into that file

then it is as simple as :

on testConnection
   if not ((url "http://www.himalayanacademy.com/ping.txt")= "true") then
        answer "Please log in to the internet and try again." with "OK"
  end if
end testConnection


I see a lot of "macho" solutions but I never understood, at least in our
context (wanting to be sure our users can access our servers) why  there
is any need for more than this.








>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list