view geoiptest.php @ 22:69c37b58d091

x
author Charlie Root
date Sun, 30 Dec 2018 06:59:13 -0500
parents 7679346abfdb
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>