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'];
?>
Since 2005 ZK has been renowned for its’ server-centric approach, providing the ultimate in productivity gains. In addition, developers can now optionally leverage the full controllability of client-side programming. It is not about server-centric or client-centric, it is about developer-centric!