Php uses Global Variables (Superglobals) called $_SERVER to get the Header, Path, and Script Location.
REMOTE_ADDR has the Ip address of the user on the current page.
echo $_SERVER['REMOTE_ADDR'];
Php uses Global Variables (Superglobals) called $_SERVER to get the Header, Path, and Script Location.
REMOTE_ADDR has the Ip address of the user on the current page.
echo $_SERVER['REMOTE_ADDR'];