PHP Classes

File: Geo/Ip/geoip.php

Recommend this page to a friend!
  Classes of Pierre-Henry Soria   Useful pH Classes   Geo/Ip/geoip.php   Download  
File: Geo/Ip/geoip.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Useful pH Classes
Classes and functions for several purposes
Author: By
Last change:
Date: 2 days ago
Size: 533 bytes
 

Contents

Class file image Download
<?php
/**
 * @author Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright (c) 2012, Pierre-Henry Soria. All Rights Reserved.
 * @link http://github.com/pH-7
 * @license CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */

namespace PH7\Framework\Geo\Ip;
defined('PH7') or exit('Restricted access');

require_once
__DIR__ . '/geoip.inc.php';
include_once
__DIR__ . '/geoipcity.inc.php';
include_once
__DIR__ . '/geoipregionvars.php';

$oGi = geoip_open(__DIR__ . '/GeoLiteCity.dat', GEOIP_STANDARD);