Thread
:
How to get clients ip in php
View Single Post
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
View Public Profile
Visit jwerd's homepage!
Find More Posts by jwerd