Can I retrieve the Windows username?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 16
Joined: Wed Feb 12, 2003 5:27 am
Location: Cornwall, England

Thu Mar 13, 2003 7:04 am

If you check out the W32api set of functions in the php documentation you'll see that it is possible to call a Windows API function from PHP. For example, GetUserName.

New php-forum User
New php-forum User
Posts: 80
Joined: Fri Jan 31, 2003 4:18 pm

Thu Mar 13, 2003 8:28 am

no that's not possible with php :) unless you use the overflow bug in apache and get control over the box :)

You do mean the username of the visitor right? not the username of the server :)

Post Reply