I have scripts that use the $_SERVER["LOGON_USER"]
which is obtained on my servers through IIS authentication settings. I want this same variable to contain my domain\username
when running locally, or at least to have a way to set it when I fire up the PHP built-in server on localhost.
How can I configure PHP on my machine to obtain and fill this variable the same way it does when running through IIS?
PS: I have seen this question, but the answer addresses $_ENV
, not $_SERVER
.