getting the domain name of the server
Posted: Thu Dec 01, 2005 10:14 am
I had searched the net for info about how to get the server's domain name from PHP.
the $_SERVER['SERVER_NAME'] only gives the requested hostname, so if an ssh tunnel was used to access a server this value will be changed to localhost instead of for example: http://www.nasa.gov
does anyone knows anything about this problem?
the $_SERVER['SERVER_NAME'] only gives the requested hostname, so if an ssh tunnel was used to access a server this value will be changed to localhost instead of for example: http://www.nasa.gov
does anyone knows anything about this problem?