[nycphp-talk] $_server['server_name'] versus $_server[http-host']
Chris Shiflett
shiflett at php.net
Thu Mar 16 15:08:16 EST 2006
Cliff Hirsch wrote:
> Aren't these the same thing?
There's more to this than meets the eye, so I decided to blog about it:
http://shiflett.org/archive/211
The short answer is that HTTP_HOST is the Host header from the HTTP
request, and SERVER_NAME is provided by the server but can be affected
by the Host header in certain circumstances.
Hope that helps.
Chris
More information about the talk
mailing list