Jump to content

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


samsher

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.