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 Fiddle is an online ZK application editor which is a multi-purpose playground for developers. ZK Team has integrated ZK Fiddle with ZK Forum providing developers with the ability to easily share code snippets for public viewing. ZK Fiddle is available at: http://zkfiddle.org This integration is important, as it represents the first in time where […]
Originally, to activate the Data Binding Manager, users have to define the page initializer at the top of the page like this: <?init class=”org.zkoss.zkplus.databind.AnnotateDataBinderInit” ?> This set of code creates an AnnotateDataBinder instance and set the instance as a variable named “binder” of the component, and then calls loadAll() to initiate all UI components from […]
Using any possible component property name as a variable name in a ZUL page or any component based dynamic web page technology is always a bad idea . This can be justified by the following reasons: 1. Variable resolve (lookup) in any dynamic web page is normally based on the stack concept . Imagine a […]