thangappan Posted February 21, 2009 Share Posted February 21, 2009 Can any one explain how can I obtain login name and showed into my web page. I am working in LINUX platform. Without giving anything it has to be give the login name. Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/ Share on other sites More sharing options...
wildteen88 Posted February 21, 2009 Share Posted February 21, 2009 login name to what? Your question is really vague. Explain your question more. Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/#findComment-767767 Share on other sites More sharing options...
thangappan Posted February 23, 2009 Author Share Posted February 23, 2009 It means, I am working in debian operating system.When I login into my system I used the login name.I want to show the login name in my web page.I will not give any input for this. Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/#findComment-768881 Share on other sites More sharing options...
linkednet Posted February 23, 2009 Share Posted February 23, 2009 Do you mean you work on a Linux machine, and want to have a script grab the login for the actually system? Or do you mean that you want to have a form that you enter a username and it outputs what you typed in? Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/#findComment-768884 Share on other sites More sharing options...
thangappan Posted February 24, 2009 Author Share Posted February 24, 2009 It means I work in a LINUX machine, I want to obtain a system login and show into a web page. Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/#findComment-769755 Share on other sites More sharing options...
wildteen88 Posted February 24, 2009 Share Posted February 24, 2009 Have a look into the $_SERVER or $_ENV supergloabls maybe something is set in there. But I dont think there is. Or you could run the whoami command via exec Quote Link to comment https://forums.phpfreaks.com/topic/146245-obtain-login-name-in-php-script/#findComment-770264 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.