Net_Geo
[ class tree: Net_Geo ] [ index: Net_Geo ] [ all elements ]

File: Geo.php

Source Location: /Net_Geo-1.0.5/Net/Geo.php

Classes:

Net_Geo

Page Details:

Includes:

require_once('Cache/Function.php') [line 24]
require_once('PEAR.php') [line 23]

NETGEO_HTTP_ERROR [line 71]

NETGEO_HTTP_ERROR = 'HTTP_ERROR'

[ Top ]



NETGEO_INPUT_ERROR [line 70]

NETGEO_INPUT_ERROR = 'INPUT_ERROR'
NetGeo - determine geographic information on an internet address

Can accept input of an AS number, an IP address or a host name Input can be individual or an array of addresses

$geo = new Net_Geo(); $geo->getRecord("php.net"); $geo->getRecord(array("php.net", "google.com"));

Results returned are a single array of results if a string is passed in or in the case of an array, a multi-dim array with the as the key

Query service type (CAIDA or localizer) is not available as a constructer to retain compatibility with existing CAIDA NetGeo classes (perl + java)

CHANGES -- 2006-03-16 Darren Ehlers <darren@ehlersconsulting.net> |

  • Added support for the HostIP service, which still retaining the same existing functionality (by default). To use the HostIP service, simply add the setService() call as in the following example:
> $geo = new Net_Geo(); > $geo->setService('hostip'); > $geo->getRecord("php.net");

  • Fixed a number of minor bugs, specifically related to providing alternate URLs.
  • Fixed code to allow changing the current service via the setService call, without having to create a new object.
  • Added RAWDATA result array item which contains the complete returned array data. The rest of the result array for the HostIP service is setup to match the existing CAIDA result array.
| CHANGES -- 2006-03-16 Darren Ehlers <darren@ehlersconsulting.net>


[ Top ]



NETGEO_LIMIT_EXCEEDED [line 74]

NETGEO_LIMIT_EXCEEDED = 'NETGEO_LIMIT_EXCEEDED'

[ Top ]



NETGEO_NO_COUNTRY [line 73]

NETGEO_NO_COUNTRY = 'NO_COUNTRY'

[ Top ]



NETGEO_NO_MATCH [line 72]

NETGEO_NO_MATCH = 'NO MATCH'

[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:40:19 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.