How to find the user IP address using php

This code will shows your remote site IP Address to the user who visited to your site. To find the client ip address you can use the $_SERVER['REMOTE_ADDR']; php code to view your client ip address. Using this ip address you can able to track your website.




<html>
<head>
<title>How to get IP ADDRESS using PHP</title>
</head>
<body>
<?php
Echo'Your IP Address is :';
Echo $_SERVER['REMOTE_ADDR'] ;
?>
</body>
</html>


 

Post a Comment

0 Comments