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'];
?>
A couple weeks ago, I was working on a customer’s support about how to reduce memory footprint of a ZUL page. At the time, I found it odd that the ZUL page was pretty simple but it retains plenty of ZK components on the server. After some research, we found the issue was caused by […]