Login   Register  
PHP Classes
elePHPant
Icontem

File: netgeo.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frederik Yssing  >  PHP Free GeoIP Location  >  netgeo.php  >  Download  
File: netgeo.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: PHP Free GeoIP Location
Get the geographic location of a IP with FreeGeoIP
Author: By
Last change: dooh, forgot that I had changed variables and methods to static.
Date: 2013-07-05 13:58
Size: 456 bytes
 

Contents

Class file image Download
<?php
    
include_once('netgeo.class.php');

    
netGeo::getNetGeo();
    echo 
netGeo::$Ip.'<br />';
    echo 
netGeo::$CountryCode.'<br />';
    echo 
netGeo::$CountryName.'<br />';
    echo 
netGeo::$RegionCode.'<br />';
    echo 
netGeo::$RegionName.'<br />';
    echo 
netGeo::$City.'<br />';
    echo 
netGeo::$ZipCode.'<br />';
    echo 
netGeo::$Latitude.'<br />';
    echo 
netGeo::$Longitude.'<br />';
    echo 
netGeo::$MetroCode.'<br />';
    echo 
netGeo::$AreaCode.'<br />';
?>