Get Visitors IP Address
Copy this code and paste it in your HTML
function visitorIP()
{
if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])){ $TheIp=$_SERVER['HTTP_X_FORWARDED_FOR'];
}else{
$TheIp=$_SERVER['REMOTE_ADDR'];
}
}
URL: http://www.devirtuoso.com
Report this snippet
Comments
Subscribe to comments