   [web] Showing hostname in PHP
  Hi, I've just been trying to teach myself some basic PHP from a few tutorial sites I've found.Basically, my problem is this.  I  have the following code to output the user's IP  address and browser:<?php echo 'You are: '; ?><font color=blue><b><?php echo $_SERVER['REMOTE_ADDR']; ?><?php echo 'You are running: '; ?><font face=tahoma size=1 color=blue><b><?php echo $_SERVER['HTTP_USER_AGENT']; ?>That prints out the following:You are: <IP ADDRESS APPEARS HERE>I'd like to be able to show the user's hostname as well, for example:123.123.45.23 / usr123343.soton.ntli.net etc...Is there a way to do this using a constant, e.g. $_SERVER['REMOTE_ADDR'] etc.?Thanks in advance,ukdeveloper.   
  $_SERVER['REMOTE_HOST'] is what you need.You can find info on the server variables and others on the predefined variables section of the php documentation.If you have any problems using $_SERVER['REMOTE_HOST'] read the note about it on the page mentioned above.   