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 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 […]