view geoiptest.php @ 20:7679346abfdb

get code and use it
author Charlie Root
date Thu, 25 Oct 2018 09:40:25 -0400
parents 093e42d5a874
children 1bb0bc3d306a
line wrap: on
line source

<html>
<body>
<?php
$country_name = $_SERVER["GEOIP_COUNTRY_NAME"];
$country_code = $_SERVER["GEOIP_COUNTRY_CODE"];
print "Country: $country_name , code: $country_code";
?>
</body>
</html>