Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Country of client workstation 2

Status
Not open for further replies.

gus121

Technical User
Joined
May 9, 2002
Messages
298
Location
GB
How would I be best detecting the clients country in the world so I can change the currency for them.
Should I use Javascript or ASP.

Angus
 
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.

Angus
 
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;

onpnt2.gif
[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top