To get IP Address of visitor in php page

Its very use full to get the ip address of your visitors for various purposes. In php it is very easy. See the below code


$ip_address = $_SERVER[‘REMOTE_ADDR’];


Now $ip_address have the ip address of page visitor.

Leave a Reply

Your email address will not be published. Required fields are marked *