I think you need to use...

getenv('REMOTE_USER');

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

                  Thanks, but it seems no one got the final solution yet!

                    Write a Reply...