clients

3 minutes read
Some times we need the visitor’s IP address for validation, security, spam prevention etc. Getting the Visitor’s IP address is very easy in PHP. We can get the Internet Protocol (IP) address of any visitor by using PHP. Get Clients IP address using PHP script The easy way to get the visitor’s IP address in php is : // Get the visitors ip address <?php echo $ipaddress = $_SERVER['REMOTE_ADDR']; ?> 1234 // Get the vis...