How to Get User IP Address using php script

Sunday, July 3, 2011 1 comment
We can get the IP address of any visitor by using PHP.It is very easy to get user IP address using php script.We can store IP address of our visitors for security reason.Similarly, based on the IP address we can also redirect the browser to different areas of the site.

Here's the code:

echo "Your ip is : $ip";

That's all.Share your scripts with us in the comments!
Sharing is sexy

Related posts

1 comments for this post

  1. Excellent pieces. Keep posting such kind of information on your blog. I really impressed by your blog.

Leave a reply

Leave a Comment
Required fields are marked *