Nice find Onput. But is IP address like this an accurate way of determining there location because the IP address are often assigned by the ISP who's servers are not neccerily based in the country.
this is the only way I know of for coming close to getting this type of information without having user interaction.
The problem is the machine can be set to anything. checking for the language settings would be a option of course but a whole lot of people over sea's use english for the primary language. The time settings are a possibility but that woul dneed client side scripting intervention. you could write a fairly simple script to compare server time (your time) with the client submitted machine time (their time) to determine the location geographicaly. I would vernture to try that but then you need to go to the machine and call the server again and at that point you could have jsut asked the user for the info.
_________________________________________________________ $str = "sleep is good for you. sleep gives you the energy you need to function";
$Nstr = ereg_replace("sleep","coffee",$str); echo $Nstr;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.