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'];
?>
The official release of ZK 5 marks the launch of ZK’s “Developer-Centric” paradigm. At the core are the Server+client Fusion and Ajax-as-a-Service architectural innovations. The integration of jQuery and Java EE 6 CDI, as well as additional enterprise level functionalities, is among the main advancements in ZK 5.
The JSR-299 passed its final release stage on December 10, 2009 and programming by dependency injection has become a standard part of the Java EE 6 platform. It is time to test integrating ZK with JSR-299 or CDI — Context and Dependency Injection for Java EE platform. And here is the result, the Hello World […]