changed getenv to $_SERVER