/** * Include IP2Country.php file * and load ip2country.dat file * */ public function loadIp2Country() { include_once Mage::getBaseDir() . '/var/geoip/ip2country/Ip2Country.php'; $ipc = new Ip2Country(Mage::getBaseDir() . '/var/geoip/ip2country/ip2country.dat'); $ipc->preload(); return $ipc; }