in reply to finding my hostname

Also, in addition to the method given in the FAQ gellyfish cited, if the script in question is a CGI script running under Apache/Unix (yes, a lot of ifs), then you can look at the variables $ENV{ HTTP_HOST } and $ENV{ SERVER_ADDR } for the server name and IP address, respectively.

the lowliest monk

Replies are listed 'Best First'.
Re^2: finding my hostname
by Fletch (Bishop) on May 05, 2005 at 16:37 UTC

    But since you'd of course be using CGI you could just use virtual_host and/or server_name instead of mucking with the environment directly.