2

serveripaddress

server_ip_address
SYNOPSIS

server_ip_address()

DESCRIPTION

server_ip_address returns the IP address of the system which is hosting the web application.

CODE
  1. function server_ip_address() {
  2.     return $_SERVER['SERVER_ADDR'];
  3. }
SEE ALSO

clientipaddress, validateipaddress

Comments

To add a comment, click here.