php if ip address in code example Example: if ip is php if($_SERVER["REMOTE_ADDR"]=='111.111.111.111'){ //run only my ip }