PHP Classes

File: netgeo.php

Recommend this page to a friend!
  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: 11 years ago
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 />';
?>