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 |