pecl dev intro - bob - geoipo

From: Date: Wed, 12 Oct 2011 22:53:00 +0000
Subject: pecl dev intro - bob - geoipo
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8722@lists.php.net to get a copy of this message
> Before filling out this form, you must write the > public pecl-dev@lists.php.net mailing list and: > * Introduce yourself Hi. I am Bob. I am 25, live in the DFW metroplex of Texas. I have a cat named Sally and she hates my girlfriend. I used to really like Green Day but now I just think they are alright. I already have a php.net SVN account. (bmajdak) > * Introduce your new extension or the extension > you would like to help maintain I have written a new GeoIP module for the MaxMind libgeoip library. This modules differs from the current geoip module in PECL in three fun filled ways: 1) this one is object oriented. $geo = new GeoIP('php.net'); 2) mine allows setting custom database directories at will. libgeoip was originally set once and forget, so the original geoip module set them in php.ini and you were stuck. this new module allows you to set your custom directory at run time instead of server wide in the ini. also thanks to advances in libgeoip, it is now possible to change the custom directory at any time during the application run. 3) mine ends in an o. geoipo. > * Link to the code, if applicable Full source: https://github.com/bobmajdakjr/php-geoipo An example of the old module: https://github.com/bobmajdakjr/php-geoipo/blob/master/examples/cmp-region-geoip.php An example of the new module: https://github.com/bobmajdakjr/php-geoipo/blob/master/examples/cmp-region-geoipo.php I need a tester for Windows. I only have OSX, Linux, and FreeBSD at my disposal. It may also need a few tweaks still for thread safety idunno. But it works great on my CLI and prefork Apaches. love, bob.

« previous php.pecl.dev (#8722) next »