detecting server IP instead of visitor's
-
$userInfo = geoip_detect_get_info_from_current_ip();
print_r($userInfo);
if ($userInfo && $userInfo->country_name == “Israel”){}Is this code ok?
I was using it to display something for israeli visitors but the function is returning my server’s ip and info only (worked before)
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘detecting server IP instead of visitor's’ is closed to new replies.