Ok, apparently I wasn't clear enough with my explanation due to the responses I have received.

I have a webserver (not on the same computer as the users) that is hosting an Intranet app. I want to obtain the username of the current person logged into the workstation that is connecting to the Intranet.

From what I have read this is impossible to accomplish from the server without prompting for a username/password. I found an activeX control (called NWSess from Novell) that will provide the currently logged in user.

The problem is that I need to take this variable (provided by the activeX control to a vbscript) and pass it to PHP so that it can be used. I don't typically use vbscript so I would really like to put the variable in PHP so that I can use it for other things.

I hope this explains what I am trying to accomplish a little better and thank you for the responses thus far.

Ashley


Burhan Khalid wrote:
Ashley wrote:

I have a unique problem that may be able to be solved another way, but I don't know how.

What I need to do is pass a variable from a vbscript into php for use.

I am using vbscript to access an activeX control on the computer that grabs the currently logged in user. This works fine, but I cannot determine how I can get that value into php so that I can use it.


If PHP is running on the same computer that the user is logged into, then you can use $_SERVER['REMOTE_USER'] to get the current logged in user.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to