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'];
?>
JSR-299 spec of JEE6 platform defines a simple yet very powerful event notification model. It has three significant parts; event producer, event payload and event observer. In this blog I will explain how ZK developers can leverage this model to write UI event handlers. Lets take a look at the example demo first. It is […]