I was able to find a nifty package.... Don't remember where I got it from, but I have
all the binaries for it.... It is a Win32 version of popular unix commands. It has
Bash, cp, cat, chmod, grep, ls, whoami (Which is what you need) and serveral other
things... Simply add
<?php
$username = exec("c:\\tools\\whoami");
echo $username . "<br />";
?>
This should be what you are looking for. I'll do some googling to see if I can find
where I got the files from for you... Until then if you want any of them let me know.
Dallin Jones
-----Original Message-----
From: Tucker, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 1:00 PM
To: 'BYU Unix Users Group'
Subject: RE: [uug] Client Username in PHP
Just from my point of view, having a web server know my domain/username
simply by me accessing it, sound like a bit of a security/privacy issue and
I can’t imaging it’s part of any HTTP standard. Is it not acceptable for
you to ask the user for this info once, and then store to info in a cookie?
At least then, I as a user would knowingly have given it to you.
dave
-----Original Message-----
From: Erin Sharmahd [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 9:26 AM
To: BYU Unix Users Group
Subject: [uug] Client Username in PHP
Ok, so I'm going to try to explain this situation:
I have a php page, and I need to be able to access the windows domain
username of the client accessing the page. I've googled and seen ways
to do this if the php is running through IIS, but in this situation,
php is running through apache, and those don't seem to work.
I've tried using things like $_SERVER, but they're returning null
If i can't figure this out, I'll probably end up having to write this
all in asp instead, so i'm hoping to get it working!
thanks in advance!
~Erin
--
-- userfriendly.org --
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list