Getting the ip address of a visitor by Php
Nowdays instead of going for analytics you can go for your own system to find the ip address of the visitors.Here is a simple code that will get you the ip address of the visitor to your site.
<?php
$ip=$_SERVER['REMOTE_ADDR'];
echo $ip;
?>
Also you can use database from geobytes.com and other sites to know about visitor’s country using the ip address
This entry was posted on Thursday, March 13th, 2008 at 2:31 pm and is filed under Php. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.