How to obtain the user id to an equipment when the user logs

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ludmila283
Forum Newbie
Posts: 5
Joined: Tue May 23, 2006 11:04 am

How to obtain the user id to an equipment when the user logs

Post by Ludmila283 »

Do you know how to obtain the user of an equipment? For example, the user logs into windows to start working. How can I know who is the user using PHP.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Have you searched this community yet? I believe there was a discussion about this several days ago.
Ludmila283
Forum Newbie
Posts: 5
Joined: Tue May 23, 2006 11:04 am

Thank you for your advice

Post by Ludmila283 »

Thank you for your advice.

On the other hand, I just met the forum today.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Thank you for your advice

Post by Roja »

Ludmila283 wrote:Thank you for your advice.

On the other hand, I just met the forum today.
Welcome!

Searching these forums will make you far more knowledgable. The forums have been around for years, and almost every major question has been asked and answered at some point. In this case, a search for "Windows auth" (choose search for all terms) will yield very helpful threads that have already answered it.
Ludmila283
Forum Newbie
Posts: 5
Joined: Tue May 23, 2006 11:04 am

Thank you I found the solution for you!!!

Post by Ludmila283 »

:D

The answer is print($_SERVER['AUTH_USER']);

ok, I ´precciate your help.
Post Reply