How to set PHP_AUTH_USER
问题 PHP_AUTH_USER is empty. And system using the Windows login credentials. How can I change it. I wanna use the username and password entered by the user 回答1: If you're running PHP under IIS and using Windows Authentication you shoud find the username under one (or more) of these: $_SERVER['LOGON_USER'] $_SERVER['AUTH_USER'] $_SERVER['REDIRECT_LOGON_USER'] $_ENV['REDIRECT_LOGON_USER'] Forget about the password - when PHP starts the user has already been authorized and the script is not supposed