Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error call to undefined function geoip_open() [closed]

Tags:

php

geoip

I have installed the geoip for getting the address based on the remote_server ip in php. I have installed the Geoip package in my system and also i have installed the php5-geoip php extension. But while running the following script it is showing the fatal error.

geoip_open("GeoIP.dat",GEOIP_STANDARD);

the error is

Fatal error: Call to undefined function geoip_open()
like image 472
Kalai Avatar asked Dec 21 '12 06:12

Kalai


1 Answers

include the geoip_inc file after that it will not show this error and its maxMind librarynot php extension

include("include/geoip.inc");

$gi = geoip_open("include/GeoIP.dat", GEOIP_STANDARD);
like image 147
Yogesh Suthar Avatar answered Sep 23 '22 15:09

Yogesh Suthar