getting a user name

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
mfalomir
Forum Newbie
Posts: 6
Joined: Tue Nov 05, 2002 9:29 pm

getting a user name

Post by mfalomir »

Hello....Im developing a public forum to use it at a local network, where users log into a network domain in their PC(windows) , what i wnat to do it's depending on which user has logged in to my local domain, at the time he access to my public forum , get his username and pass it directly to the forum, instead of using cookies or validate a user name in a data base.....did i make my self clear?? or is it too confusing :) well, i hope you can help me....thanks....
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Try

Code: Select all

echo '<pre>';
print_r($_SERVER);
echo '</pre>';
and check for a variable which contains your network login (on my server it's $_SERVER['REMOTE_USER']).

Mac
Post Reply