ip address

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

ip address

Post by SidewinderX »

ive been looking for a few minutes i cant seem to find any leads....is there a function to determine the ip address of the clients computer?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$_SERVER['REMOTE_ADDR'] has what's reported as the calling IP.. There are other headers set for "legal" proxies that give out the IP of the requesting machine... search around if you want to know them.. ;)
Post Reply