Help with = $_SERVER['REMOTE_USER']

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
User avatar
pedrokas
Forum Commoner
Posts: 32
Joined: Thu Jan 15, 2004 10:53 am
Location: Lisboa, Portugal

Help with = $_SERVER['REMOTE_USER']

Post 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.
User avatar
emperor
Forum Newbie
Posts: 16
Joined: Tue Mar 02, 2004 11:20 am
Location: UK

Post 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
User avatar
pedrokas
Forum Commoner
Posts: 32
Joined: Thu Jan 15, 2004 10:53 am
Location: Lisboa, Portugal

Post 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.
Locked