View Single Post
Old 08-14-2015, 04:25 AM  
RummyBoy
Confirmed User
 
Join Date: Dec 2009
Posts: 2,157
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 View Post
IF your geoip module is properly configured...

Code:
<?php
$geo = geoip_record_by_name($_SERVER['REMOTE_ADDR']);
if(!$geo['city']) {
   $geo['city'] = "Your City";
}
?>
RummyBoy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote