Info on capturing remote node's address... RH9
With php, our server will capture remote nodes IP addresses like this:
But, does anyone know what the newest variables are in RH9 to capture remote_host, remote_addr, etc...?
I tried the following from a book dated 5 years ago and well, you know how fast the technology stuff changes:
$remote_address = $ENV('REMOTE_ADDR');
$remote_host = $ENV('REMOTE_HOST');
print "IP is: ",$remote_address,"\n";
and the error message I'm receiving is:
Global symbol "$remote_address" requires explicit package name
Anyone know of a simpler way to capture the ip address and host name?