my get ip php code example
Example 1: php get ip address
$clientIPAddress=$_SERVER['REMOTE_ADDR'];
Example 2: php only my ip
$myIp = '';
if ($_SERVER['REMOTE_ADDR'] == $myIp) {
//do something
}
$clientIPAddress=$_SERVER['REMOTE_ADDR'];
$myIp = '';
if ($_SERVER['REMOTE_ADDR'] == $myIp) {
//do something
}