As theincluded script webasyst?

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'];

Trying to create this:
But climbs error .

October 3rd 19 at 01:48
2 answers
October 3rd 19 at 01:50
before 'SxGeoCity.dat' it was necessary to specify the path
October 3rd 19 at 01:52

There may be a problem of rights?

Find more questions by tags PHP