25.05.2016, 14:33
Trying this code now, tho I need to find a way to extract the country code.
It displays after the "country_code" text in the website:
It displays after the "country_code" text in the website:
PHP код:
$pageContent = 'http://freegeoip.net/json/' .$playeronlinee["IP"];
$mystring = strtolower(file_get_contents($pageContent));
$n = sscanf($mystring, "'country_code': '%s'", $section);