View Single Post
Old 08-29-2005, 10:24 AM  
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
If
$_SERVER['REMOTE_ADDR'] doesn't work, superglobals may be broken

Try:

$ip = getenv('REMOTE_ADDR');
echo $ip
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote