Thread
:
First GEO TARGET FREE HOSTED GALLERIES from Legendary Lars
View Single Post
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
View Public Profile
Visit Big E's homepage!
Find More Posts by Big E