samsher Posted June 7, 2007 Share Posted June 7, 2007 Hi, Can anyone answer how to get a client Username/Computername which is viewing my webpage, I am not saying Remote IP at all.. I came across following two methods in PHP like: 1) php_uname('a'); ----- [which actually shows the Server / Host name and not the client name] 2) gethostbyaddr($_SERVER['REMOTE_ADDR']); ---------- [which is supposed to show Client hostname but only shows the Client IP] Please guide me if you have any correct method to do this. I want to retrieve more details from my visitor's side/Clientside who visits my webpage as Computername/Active Username, Operating system (ok this one I can get) etc. Thanks! Samsher Quote Link to comment https://forums.phpfreaks.com/topic/54536-to-get-a-client-system-usernamecomputer-name-after-webpage-visit/ Share on other sites More sharing options...
trq Posted June 7, 2007 Share Posted June 7, 2007 There is no way of reliably retrieving this information. If it was an intranet you where talking about you may have more success, otherwise, I think you'd need to look at ActiveX, but even then there are security concerns / issues. Quote Link to comment https://forums.phpfreaks.com/topic/54536-to-get-a-client-system-usernamecomputer-name-after-webpage-visit/#findComment-269751 Share on other sites More sharing options...
samsher Posted June 7, 2007 Author Share Posted June 7, 2007 Yes, that's what I was thinking. But how about getting more detailed info. which identifies the Visitor more clearly. Anyways, thanks for respoding.. Regards, Samsher Quote Link to comment https://forums.phpfreaks.com/topic/54536-to-get-a-client-system-usernamecomputer-name-after-webpage-visit/#findComment-269761 Share on other sites More sharing options...
trq Posted June 7, 2007 Share Posted June 7, 2007 But how about getting more detailed info. which identifies the Visitor more clearly. Like what? PHP is on the server, the client is... well, on the client. The two don't meet. I don't see how getting a users local username makes identifying them any easier. There could be any number of windows users with bob as there username. Quote Link to comment https://forums.phpfreaks.com/topic/54536-to-get-a-client-system-usernamecomputer-name-after-webpage-visit/#findComment-269763 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.