`getenv` and `$_SERVER` are two different ways to access environment variables in PHP. It's unusual for `getenv` to not work while `$_SERVER` does, as both methods are commonly used and should retrieve the same value for the `HTTP_HOST` variable.
However, there could be some specific...