View Full Version : country(Area) detection

03-18-2009, 11:22 PM
please say me how could i know from which part of the world my website is accessing. i need it for the development of my website(php based)

03-19-2009, 01:08 AM
Hi deshi2003,

I am not sure if I understand your question. The way I find out where my users are coming from is by using funnel web or google analytics. If you really want to be more snicky, I could use some thing like this:

$email = "someone@gmail.com"; // ENTER YOUR EMAIL ADDRESS HERE

if ($_SERVER['REMOTE_ADDR'] != "") {
if(array_key_exists("HTTP_REFERER",$_SERVER)) {
date("Y-m-d H:i:s")."\n".
} else {
date("Y-m-d H:i:s")."\n".
mail($email, $_SERVER['REQUEST_URI'], $body, "From: ".$_SERVER['REMOTE_ADDR']." <".$email.">");
You have reached this page in error. Please click <b><a href="http://www.somesite.com">here</a></b> to return to the original page.