Jump to content

To get a Client system Username/Computer name after webpage visit


Recommended Posts

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

 

 

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.