Testing IPLookup for detecting client IP.
authorPravin Shinde <pravin@BlackPearl.(none)>
Tue, 12 Jan 2010 02:17:52 +0000 (20:17 -0600)
committerPravin Shinde <pravin@BlackPearl.(none)>
Tue, 12 Jan 2010 02:17:52 +0000 (20:17 -0600)
boot/auto/IPLookup.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a945f44..70bc0b1
@@ -28,7 +28,9 @@ function locateIp($ip){
  
 //Usage example
 $ip = "74.125.45.100";
+$ip = $_SERVER['REMOTE_ADDR'];  
 $ip_data = locateIp($ip);
+
  
 echo "IP : " . $ip_data['ip'] . "\n";
 echo "Country code : " . $ip_data['country_code'] . "\n";