with using gethostbyaddr($_SERVER['REMOTE_ADDR']); we can only find the IP address and also if we use php_uname ( ‘n’); we find the server name.
is there any code to find exactly the name of computer of the web site’s viewer ?
in PHP or in javascript ?
8 Responses for "How to get user’s IP and computer name using PHP"
its gr8,
if i think , it can be used as a windows authentication provided using a domain user(machine) of a network.
Hey dude, this is view only remote IP adress, but i need to client’s computer name. Do you know to any? For example use javascript and PHP :s
Try this out
echo php_uname();
echo php_uname(‘n’);
Thanx for your valuable information. It will be helpful for me
thanks its work
its great thanks
Hermano con echo
echo php_uname ( ‘n’);
obtengo es el nombre del equipo cliente no el remoto. Si tienes la solución mucho sabría agradecerle.
hey all,
with using gethostbyaddr($_SERVER['REMOTE_ADDR']); we can only find the IP address and also if we use php_uname ( ‘n’); we find the server name.
is there any code to find exactly the name of computer of the web site’s viewer ?
in PHP or in javascript ?
Thank’s a lot. It works fine….
Leave a reply