Actions

 Language:
 RSS flow:


PHP - Determine the IP address of a visitor


Determine the IP address of a visitor

    To determine the IP address of a visitor, you have to use $_SERVER["REMOTE_ADDR"] instruction.

     

    Example:

      $VisiteurIP = $_SERVER["REMOTE_ADDR"];
      print "You're IP address is: $VisiteurIP";
      
Go back