> When I use the variable it shows the numbers like 192.168.10.25 (I know this > is an internal network address, it is just for example.)
Use $_SERVER['REMOTE_HOST'] to get the hostname instead of the IP address. This will only work if Apache has HostNameLookups enabled. See: http://uk.php.net/manual/en/reserved.variables.php#reserved.variables.server for more details. Be aware that this will still show the IP address for people like myself who don't have reverse DNS enabled and also you will be making at least one lookup request for each page request - hence why it is disabled by default in Apache (see the comments in httpd.conf for more information). Only enable it if you *really* need it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php