Wednesday, February 13, 2013

Trace User IP Address Using Php Script

We can get the IP address of any visitor by using PHP. Finding the IP address is very important requirement for many scripts where we store the members or visitors details.Just use Server function and apply remote address.
Here is the code to display your ip address.

Example :

echo $ip=$_SERVER['REMOTE_ADDR']; 

//output : 216.239.51.99

No comments:

Post a Comment

Thanks....