Re: Authentication
| From: | Daniel Brown | Date: | Fri, 27 Jul 2007 17:57:59 +0000 |
| Subject: | Re: Authentication | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259682@lists.php.net to get a copy of this message | ||
On 7/27/07, Dan Shirah <mrsquash2@gmail.com> wrote:
> All,
>
> 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?
>
> 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?
>
> Thanks,
>
> Dan
>
I couldn't hear you at first over your away message conversations. ;-P
I know Perl (and, inherently, PHP) has a getenv identity
REMOTE_USER (http://hoohoo.ncsa.uiuc.edu/cgi/env.html), but I haven't
had success employing it.... but I think I only tried it once, about
six years ago, just to see if it would work.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107