25.05.2016, 00:41
(
Последний раз редактировалось Amit1998; 03.06.2017 в 12:36.
)
Testing
Assuming you are using MySQL, please show a screenshot of the following part of phpinfo():
The second error is standard because the database connection was not succesfully initialized. The first error was most likely because you don't have the pdo_mysql driver. |
<?php
$ip = "IP.IP.IP.IP";
$country = geoip_country_code_by_name($ip);
echo $country;
?>
$pageContent = 'http://freegeoip.net/json/' .$playeronlinee["IP"];
$mystring = strtolower(file_get_contents($pageContent));
$n = sscanf($mystring, "'country_code': '%s'", $section);