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'];
print_r($city);
>


Trying to create this: http://www.webasyst.ru/developers/docs/helpers/custom-helpers/
But climbs error .

October 3rd 19 at 01:48
2 answers
October 3rd 19 at 01:50
Solution
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