Title: own database path
Last modified: August 22, 2016

---

# own database path

 *  Resolved [sgarcia](https://wordpress.org/support/users/sgarcia/)
 * (@sgarcia)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/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
 * [https://wordpress.org/plugins/geoip-detect/](https://wordpress.org/plugins/geoip-detect/)

Viewing 1 replies (of 1 total)

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/own-database-path/#post-5512898)
 * The Plugin already looks at the /uploads/-Folder as-is:
    [https://github.com/yellowtree/wp-geoip-detect/blob/master/updater.php#L15](https://github.com/yellowtree/wp-geoip-detect/blob/master/updater.php#L15)
 * There seem to be going on something else: the plugin “ised” also includes the
   Geoip library because this is where you get your error from.

Viewing 1 replies (of 1 total)

The topic ‘own database path’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/own-database-path/#post-5512898)
 * Status: resolved