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'];
?>
Myth I – UI Component Control is Cumbersome Due to ID Space Constraints Misconceptions often get in our way of recognizing the true value of things. In the case of building enterprise grade Web applications using ZK, when programmers work around the framework convention instead of working with it, they make applications more complicated than […]