own database path
-
Hi, I’m using geoIp with wordpress, but I would like to be able to use the database from another directory different than the plugin one.
As wordpress donwloads GeoLiteCity.dat in uploads folder within wordpress, i would like the plugin could look for it in the uploads folder.
As I tried to change the path:$gi = geoip_open(__DIR__ . '/geoip/GeoLiteCity.dat', GEOIP_STANDARD);
to the new one I get the error:
Warning: fopen(/blablabla/wp-content/uploads/GeoLiteCity.dat): failed to open stream: No such file or directory in /blablabla/wp-content/plugins/ised/library/geoip/geoip.inc on line 386 Can not open blablabla/wp-content/uploads/GeoLiteCity.dat
Is it possible to read de database GeoLiteCity.dat form another folder than the one provided by the plugin?
Thank you very much
- The topic ‘own database path’ is closed to new replies.