Mit GEOIP Ländercode von URL(Host) bekommen

 

$link = "http://www.itlantik.de/node/add/article?uuid=02516";

if( function_exists('geoip_country_code_by_name') ) {

    $geoip_host = geoip_country_code_by_name( parse_url($link, PHP_URL_HOST) );

  echo $geoip_host; # DE

}

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare