Well my code shows me a city.... your code doesnt work for me at all.
Doesn't show any city.
Quote:
Originally Posted by k0nr4d
IF your geoip module is properly configured...
Code:
<?php
$geo = geoip_record_by_name($_SERVER['REMOTE_ADDR']);
if(!$geo['city']) {
$geo['city'] = "Your City";
}
?>
|