Re: New class Net_Geo
| From: | Sterling Hughes | Date: | Wed, 30 Jan 2002 02:34:11 +0000 |
| Subject: | Re: New class Net_Geo | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4283@lists.php.net to get a copy of this message | ||
> Hi.
> I've knocked up a class which is PEAR compatible called Net_Geo. This is a
> basic port of existing Java and Perl classes from caida.org.
>
> Net_Geo obtains geographical information based on IP address, host name or
> Autonomous System (AS) number. From this input, various information is
> returned including latitude and longitude ranging in granularity from
> Country to City depending on what's in the NetGeo database.
>
> You can check it out at £%ÛÐäiAT¼¨J¬Å
> http://inetix.com.au/php/test_netgeo.php
>
> I've found that even though you can feed in domain names, the NetGeo server
> does not always return a positive result whereas an IP number always works
> correctly so the test form converts to an IP before querying. I've also
> included a link to Map Quest for fun. Ouput formatted using Frederic's
> class Var_Dump class :)
>
> The caching is rather simple so any advice there would be appreciated. IIRC
> last time I tried the Cache/Function.php I could not use it inside a class.
>
> I'd love to see it go into PEAR is possible.
>
Me too. This is a *really* cool service, and its great to have a
PHP version of it :)
If you don't mind, I'll add cURL support to it when its commited as
well :)
-Sterling
> Cheers,
> Graeme
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
--
I wish I may, I wish I might, GIMME STUFF!
http://www.amazon.com/exec/obidos/wishlist/E7I1IWUJDPB4/
:)))