Re: Authentication

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> 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
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux