public static function getClientLocation()
    {
        $result = false;
        $ip_data = @json_decode(self::curl('http://www.geoplugin.net/json.gp?ip='.self::getClientIP()));

        if (isset($ip_data) && $ip_data->geoplugin_countryName != null) {
            $result = $ip_data->geoplugin_city.', '.$ip_data->geoplugin_countryCode;
        }

        return $result;
    }
public static function getClientLocation()
    {
        $result = false;
        $ip_data = @json_decode(self::curl('http://www.geoplugin.net/json.gp?ip='.self::getClientIP()));

        if (isset($ip_data) && $ip_data->geoplugin_countryName != null) {
            $result = $ip_data->geoplugin_city.', '.$ip_data->geoplugin_countryCode;
        }

        return $result;
    }
public static function getClientLocation ( ) { $ result = false ; $ ip_data = @ json_decode ( self :: curl ( 'http://www.geoplugin.net/json.gp?ip=' . self :: getClientIP ( ) ) ) ; if ( isset ( $ ip_data ) && $ ip_data -> geoplugin_countryName != null ) { $ result = $ ip_data -> geoplugin_city . ', ' . $ ip_data -> geoplugin_countryCode ; } return $ result ; }
Get client location.

@return string|false
Get client location .