1

The code is:

if (!geoip_db_avail(GEOIP_COUNTRY_EDITION)) { //do this } 

and it is throwing a:

Caught fatal error: Call to undefined function geoip_db_avail() 

in one of my applications.

On a test on another site on the same server using:

$country_name = apache_note("GEOIP_COUNTRY_NAME"); print "What: " . $country_name; if (geoip_db_avail(GEOIP_COUNTRY_EDITION)) { print "NO!"; } else { print "YE"; } 

It does not show the error but all the page prints is:

What: Pakistan 

It does not print Ye or NO!

1 Answer 1

2

Manual is your friend. This function is declared in PECL geoip extension which is installed on one of your servers but not on another.

You can read here about installation and requirements.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.