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
March 13th, 2008 in
Php
