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 <[EMAIL PROTECTED]> 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
>

Reply via email to