Page 1 of 1

Help with = $_SERVER['REMOTE_USER']

Posted: Mon Nov 08, 2004 11:30 am
by pedrokas
HI
i tried to get the variables name + domain from my windows 2000 server.
but when i call the $_SERVER['REMOTE_USER'] returns nothing.

how can i get that info?
tks.

Posted: Mon Nov 08, 2004 12:47 pm
by emperor
Do you mean $_SERVER['REMOTE_ADDR'] or maybe $_SERVER['REMOTE_HOST'] for info on the machine accessing the script. If you want info on the server the script is running on then maybe you want $_SERVER['SERVER_NAME']. There are a load more too, check them out here

http://www.php.net/manual/en/reserved.v ... les.server

Posted: Tue Feb 22, 2005 4:34 am
by pedrokas
hi again.
i managed to solve the problem, in the IIS i deselect the option annonymous user.

It turns the environment with _SERVER[logon_user], remote_user, etc...

Thanku anyway.