Linux-Noob Forums

Full Version: question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
now i wants get client physical address what cat i do use php

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']; ?>