Users Ip

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
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Users Ip

Post by Terriator »

I'm using following to get my users ip-address, but it doens't work:

GetHostByName($REMOTE_ADDR);

Thanks,
Terriator
User avatar
php3ch0
Forum Contributor
Posts: 212
Joined: Sun Nov 13, 2005 7:35 am
Location: Folkestone, Kent, UK

Post by php3ch0 »

try using

Code: Select all

$_SERVER['REMOTE_ADDR'];
Post Reply