Avoid using apache_getenv() so it works with PHP via CGI.