I am trying to check my ip address and if the ip is mine the display my name other wise display This is not me.
My code is some thing like this:
$my_ip = $_SERVER['SERVER_ADDR'];
if($my_ip == '113.199.172.73'){echo "This is john";} else {"This is not me";}
At the beginning I check echo $_SERVER['SERVER_ADDR'];
and output was 113.199.172.73
Someone can help ?