diff geoiptest.php @ 40:77ff181476b8

geoip fix?, better debugging
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sun, 30 Jul 2017 05:36:07 -0400
parents 077b0a0a3e6d
children 7679346abfdb
line wrap: on
line diff
--- a/geoiptest.php	Sat Feb 18 15:18:47 2017 +0000
+++ b/geoiptest.php	Sun Jul 30 05:36:07 2017 -0400
@@ -1,7 +1,7 @@
 <html>
 <body>
 <?php
-$country_name = apache_note("GEOIP_COUNTRY_NAME");
+$country_name = $_SERVER["GEOIP_COUNTRY_NAME"];
 print "Country: " . $country_name;
 ?>
 </body>