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 We have talked before about ZK integration with 3rd party themes, and ZK theme customization. These are good choices for large-scale look and feel changes to a ZK application, but they are not the only options available. In addition to these bigger projects, you can give a fresh feeling for your whole application with […]
Introduction Most ZK use cases require a server-side event listener. This said, sometime a client-side listener can be more relevant. In this article, we are going to explain the difference between a server-side and a client-side event listener. We will also see when a client-side listener is a good choice for a workflow. Server-side listener […]