Hi please tell me if there is any in built function in php which detects the ip of the users visiting my website? saurabh
Why dont u use any external tracker like addfreestats? That gives you all the information of the visitor
Try $IP = getenv("REMOTE_ADDR"); or $IP = $HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]; $proxy = $HTTP_SERVER_VARS["REMOTE_ADDR"]; $host = @gethostbyaddr($HTTP_SERVER_VARS["HTTP_X_FORWARDED_FOR"]);