Alas, none of these will work--I checked with phpinfo() and the variable
I am looking for is not there. It can get information from the server,
but not the client. I don't think there is a way to do this with
PHP...darn it. Thanks though.
-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff Lane
Sent: Tuesday, July 26, 2005 12:40 PM
To: [email protected]
Subject: Re: [php_mysql] Getting the Windows username?
Tuesday, July 26, 2005, Michael Roush wrote:
>> Is it possible to get the Windows username (not host machine)
with PHP
>> or, failing that, any other way? Thanks,
> For a user's machine, not that I know of. That sort of
information isn't
> generally collected/transmitted by a web browser, afaik.
> If you are meaning the Windows username for a Windows machine
running a
> web server and PHP, that is stored in the $_ENV["USERNAME"]
variable.
---
I haven't tried this but suspect you'd get some mileage trying
$_SERVER['AUTH_USER'] and $_SERVER['REMOTE_USER']
in PHP 4.1.0 or later or
$HTTP_SERVER_VARS['AUTH_USER'] and
$HTTP_SERVER_VARS['REMOTE_USER']
prior to PHP 4.1.0
HTH,
--
Geoff Lane
Cornwall, UK
The php_mysql group is dedicated to learn more about the
PHP/MySQL web database possibilities through group learning.
SPONSORED LINKS
Php mysql
<http://groups.yahoo.com/gads?t=ms&k=Php+mysql&w1=Php+mysql&w2=Job+posti
ngs&c=2&s=33&.sig=FLGkJVBUdDMln4PBO26sng> Job postings
<http://groups.yahoo.com/gads?t=ms&k=Job+postings&w1=Php+mysql&w2=Job+po
stings&c=2&s=33&.sig=cV3rp9pSpCxahJy7imon_w>
_____
YAHOO! GROUPS LINKS
* Visit your group "php_mysql
<http://groups.yahoo.com/group/php_mysql> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service <http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]
The php_mysql group is dedicated to learn more about the PHP/MySQL web database
possibilities through group learning.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php_mysql/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/