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'];
?>
ZK is renowned for its “Ajax without JavaScript” since day one. But now, ZK has decided to befriend with JavaScript. What’s the catch? “Ajax without JavaScript” is derived from ZK’s server-centric architecture, which uses a desktop-like programming model to shield developers from JavaScript and complicated server-browser communication. The focus on server-side Java application development makes […]