- <?
- function get_ip() {
- /*
- get_ip();
- Checks to see if an request is forwarded, ie by
- proxy/cache and if so, returns the requesting IP
- and not the IP of the proxy. Many, many people
- just store the env superglobal REMOTE_ADDR which
- often contains a proxy IP.
- Usage: get_ip()
- Returns: Dotted Quad notation IPv4 IP
- */
- /* The IP is forwarded, return this value */
- }
- }
- ?>
Code / PHP Snippets / Function: get_ip()
Download as Text : January 6th, 2009
This work is licensed under a