Mercurial > hg > ywww
annotate 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 |
rev | line source |
---|---|
6
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
1 <html> |
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
2 <body> |
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
3 <?php |
16
093e42d5a874
minor tidy-ups on new-server install
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
6
diff
changeset
|
4 $country_name = $_SERVER["GEOIP_COUNTRY_NAME"]; |
20 | 5 $country_code = $_SERVER["GEOIP_COUNTRY_CODE"]; |
6 print "Country: $country_name , code: $country_code"; | |
6
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
7 ?> |
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
8 </body> |
077b0a0a3e6d
remaining originals according to dependency walk
Robert Boland <robert@markup.co.uk>
parents:
diff
changeset
|
9 </html> |