if (!empty($_SERVER['HTTP_CLIENT_IP']))
$ip=$_SERVER['HTTP_CLIENT_IP'];
else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
else
$ip=$_SERVER['REMOTE_ADDR'];
?>
Introduction In the previous post, we have explored the benefits of combining ZK with Spring MVC. In essence, applying the power of Spring MVC to ZK UI framework allows seamless communication between client and server channels, especially since ZK framework will handle the routine tasks, such as HTML DOM update, Browser compatibility, and JavaScript code […]