Revision: 33692
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 12, 2010 06:54 by YPY
Initial Code
function Client_IP() { #array('HTTP_CLIENT_IP', 'CLIENT_IP', 'REMOTE_ADDR', 'HTTP_PROXY_CONNECTION', 'HTTP_FORWARDED', 'HTTP_X_FORWARDED', 'FORWARDED_FOR_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED_FOR_IP', 'HTTP_X_FORWARDED_FOR', 'FORWARDED', 'X_FORWARDED_FOR', 'FORWARDED_FOR', 'X_FORWARDED', 'HTTP_VIA', 'VIA'); if(isset($_SERVER['REMOTE_ADDR'])): $_Str_Return= &$_SERVER['REMOTE_ADDR']; elseif(getenv('REMOTE_ADDR')): $_Str_Return= &getenv('REMOTE_ADDR'); else: $_Str_Return= HTTP_SERVER_VARS['REMOTE_ADDR']; endif; return($_Str_Return); }
Initial URL
http://www.ypy.ir
Initial Description
Better Client/Remote IP function
Initial Title
Better Client/Remote IP function.
Initial Tags
php, ip
Initial Language
PHP