I think you need to use...
getenv('REMOTE_USER');
I think you need to use...
getenv('REMOTE_USER');
I tried that but it didn't show anything!
How are your user's logging in?
Are you using .htaccess and .htpasswd?
no, what I am looking for is to get only the Netwoek ID since it is already Authenticated by Windows server.
I'm not sure that you can do that with PHP....
as I said:
VB.BET use this built function
Request.ServerVariables("LOGON_USER")
and if PHP can't do it.. it is a major disadvantage.
Ok can I use VB script in PHP pages?
If you create a blank page with just the following text on, and then view it, it'll show you all the variables that are available to PHP....
<?
phpinfo();
?>
Thanks for the advice, I did it but couldn't find my Network ID in any line in the result.
Does this mean it is not possible to get the ID using PHP?
I don't think so..... It's a massive security risk being able to obtain that information through a web page anyway.....
Do one or more of the following threads help?
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10226037
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10235409
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10244285
(Which isn't to say that those are necessarily the only ones on this subject.)
Thanks, but it seems no one got the final solution yet!