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
In reply to Re: finding my hostname
by tlm
in thread finding my hostname
by BadMojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |