Page 1 of 1

Help with = $_SERVER['REMOTE_USER'] (SOLVED)

Posted: Mon Feb 21, 2005 11:01 am
by pedrokas
I all!
I've don'it one time several months ago, and now i've completely forgot.

I need to have windows domain name to validate a row.
I know the $_SERVER['HTTP_HOST'] works but my server returns that the env do not exits!
in the other server the phpinfo() environment have the names and the php variable too.

Help pls!
i this this is a easy q!

TKU

Posted: Mon Feb 21, 2005 11:29 am
by feyd

Code: Select all

var_export(array('$_ENV'=>$_ENV,'$_SERVER'=>$_SERVER));
it should be inside either of those..

Posted: Tue Feb 22, 2005 4:35 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.