Page is a not externally linkable
enigma1 - 3:13 pm on Apr 26, 2012 (gmt 0)
The php script is not the Apache access log. That's the one you need to check for the problem and will include the IP (unless you have a server configuration problem).
If you want to get the IP via PHP make sure your php script works and points to the correct server variable. It may depend on hosting type, for cloud hosting the ip may not be in the $_SERVER['REMOTE_ADDR'] or maybe the script doesn't retrieve the ip from the right variable but from the one that can be set from the client end. So cross reference what you see with the apache log.