Linux-Noob Forums
question - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Server Administration (https://www.linux-noob.com/forums/forum-8.html)
+--- Forum: LAMP (https://www.linux-noob.com/forums/forum-83.html)
+--- Thread: question (/thread-993.html)



question - wds - 2008-03-18

now i wants get client physical address what cat i do use php



question - hybrid - 2008-03-18


To get the IP address of the user's browser in a PHP script, simply access the variable $_SERVER['REMOTE_ADDR'].

 

For example:

 



Code:
<?php echo 'Your IP address is '.$_SERVER['REMOTE_ADDR']; ?>