view geoiptest.php @ 26:55a76c257dad

no stylesheet
author Robert Boland <robert@markup.co.uk>
date Fri, 04 Jan 2019 08:44:07 -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>