Trying to screw with my helper scripts in WebAsyst to determine the city.
Separately everything works. For the address
<?php include("SxGeo.php");
$ip = "x.x.x.x"; //my IP
$SxGeo = new SxGeo('SxGeoCity.dat', SXGEO_BATCH | SXGEO_MEMORY);
$iparray = $SxGeo--->getCity($ip);
$city = $iparray['city'];
print_r($city);
>
There may be a problem of rights?
Find more questions by tags PHP