View Single Post
Old 12-29-2004, 01:59 PM  
Big E
Registered User
 
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935

Quote:
Originally Posted by Varius
$ip = $_SERVER[REMOTE_ADDR];
$ip = split("\.",$ip);
$ip = (16777216 * $ip[0]) + (65536 * $ip[1]) + (256 * $ip[2]) + $ip[3];
Or you could just use:

$IP_INT = ip2long($_SERVER['REMOTE_ADDR']);
Big E is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote