Bug 506: use $_SERVER[] instead of getenv() because the latter doesn't work