Mercurial > hg > ywww
view geoiptest.php @ 39:2c0c95bd97a6
pass char for log lines in to doAmazonRequest,
move static arrays to aws_s_r
author | Charlie Root |
---|---|
date | Fri, 04 Jan 2019 18:03:24 -0500 |
parents | 1bb0bc3d306a |
children |
line wrap: on
line source
<html> <body> <?php if (isset($_SERVER["GEOIP_COUNTRY_NAME"])) { $country_name = $_SERVER["GEOIP_COUNTRY_NAME"]; } else { $country_name = $_SERVER["REDIRECT_GEOIP_COUNTRY_NAME"]; } if (isset($_SERVER["GEOIP_COUNTRY_CODE"])) { $country_code = $_SERVER["GEOIP_COUNTRY_CODE"]; } else { $country_code = $_SERVER["REDIRECT_GEOIP_COUNTRY_CODE"]; } print "Country: $country_name , code: $country_code"; ?> </body> </html>