[php] What is the difference between HTTP_HOST and SERVER_NAME in PHP?

Depends what I want to find out. SERVER_NAME is the host name of the server, whilst HTTP_HOST is the virtual host that the client connected to.