On Fri, July 27, 2007 12:51 pm, Dan Shirah wrote: > I looked on PHP.net but I couldn't not find anything suitable to > answer my > question. > > Within PHP, is there a way to pull the name of the user that is > currently > logged into the PC? That data is not transmitted, by design, in an HTTP request. > I know with some of the _SERVER functions you can pull the IP of the > machine > and other data, is there a function within this family that would > work? If you can find a JavaScript function to snoop the username, you could then write that into the URL, I suppose... But I suspect that, by design, JavaScript does not do this either. Basically, the username on the visitor's computer is both meaningless and far far far too private to be handing it out arbitrarily. It's meaningless in that any user can buy a PC and set up any username they want on it, and your webserver has NO IDEA what that username means. It's far far far too private, because it's none of your business to know who I am when I'm surfing. If you're trying to get some kind of "one login" system going, there may or may not be some useful info in the ever-reappearing thread regarding "Active Directory" and/or LDAP. If you're trying to do something else, post whatever it is you are trying to do, and perhaps you'll get some help. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php