Mercurial > hg > ywww
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 19:84a412b8122c | 20:7679346abfdb |
|---|---|
| 1 <html> | 1 <html> |
| 2 <body> | 2 <body> |
| 3 <?php | 3 <?php |
| 4 $country_name = $_SERVER["GEOIP_COUNTRY_NAME"]; | 4 $country_name = $_SERVER["GEOIP_COUNTRY_NAME"]; |
| 5 print "Country: " . $country_name; | 5 $country_code = $_SERVER["GEOIP_COUNTRY_CODE"]; |
| 6 print "Country: $country_name , code: $country_code"; | |
| 6 ?> | 7 ?> |
| 7 </body> | 8 </body> |
| 8 </html> | 9 </html> |
