Re: Authentication
| From: | Nathan Nobbe | Date: | Fri, 27 Jul 2007 17:59:02 +0000 |
| Subject: | Re: Authentication | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-259683@lists.php.net to get a copy of this message | ||
on *.nix you could do something like
$users = explode(' ',
users);
$users will then be an array w/ the usernames of the currently logged in
users.
user names may appear more than once, per the users documentation.
no clue or care on windows for me :)
-nathan
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
>