Esempio 1. A geoip_country_code_by_name() example
This will print where the host example.com is located.
<?php $country = geoip_country_code_by_name('www.example.com'); if ($country) { echo 'This host is located in: ' . $country; } ?>
|
Il precedente esempio visualizzerà:
This host is located in: US |