Quote:
Originally Posted by KlenTelaris
Just tested it and works fine,tho i did forgot to add break;
PHP Code:
<?php
$country = getenv(GEOIP_COUNTRY_NAME);
$country_code = getenv(GEOIP_COUNTRY_CODE);
echo $country_code;
switch ($country_code) {
case 'UK':
echo '<img src="Ukbanner.jpg"></img>';
break;
case 'DE':
echo '<img src="Debanner.jpg"></img>';
break;
case 'US':
echo '<img src="Usbanner.jpg"></img>';
break;
default:
echo '<img src="Other.jpg"></img>';
break;
}
?>
Here is an article where you can check do you have everything installed fine:
http://www.tecmint.com/install-mod_g...centos-6-35-8/
|
this works great, thanks.