If apache module is installed, you get country code with :
$_SERVER['GEOIP_COUNTRY_CODE']
With the PHP module/library, you use :
geoip_country_code_by_name($_SERVER['REMOTE_ADDR'])
What is the difference (performance etc...) between these 2 solutions ? Which one is the best ? For which need ?
I think apache module loaded extention in memory for every request, which could be bad for performances. (Or you have to set rules with GeoIPEnable Off/On
but this is not always easy...)
So If you need geoip on some pages only, is it better for performance to use PHP module ?