IP/Domain Logging

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
RedHatCore
Forum Newbie
Posts: 3
Joined: Mon Aug 22, 2005 10:43 am
Contact:

IP/Domain Logging

Post by RedHatCore »

Sorry if It's a rather "newbie" question, but I need to know how to get a user's domain address--- I already know how to get the IP. I'm making a simple IP logger and want there domain address as well. Thank you.
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

what do you mean by domain address?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I don't know how the domain is found out, but he is refering to his ISP's domain.
RedHatCore
Forum Newbie
Posts: 3
Joined: Mon Aug 22, 2005 10:43 am
Contact:

Post by RedHatCore »

$IP = $_SERVER['REMOTE_ADDR']; puts the person's IP in $IP

I want to put there domain in $DOMAIN

For example...

my IP is 71.1.227.110, but my domain is something like... 345-45-4-45.sprint.internet.something.net you know?

In MS windows when you type in tracert -Some IP- it will output this 'domain' address... I want to be able to log that 'domain' address of my users that go to my web site.
User avatar
nickman013
Forum Regular
Posts: 764
Joined: Sun Aug 14, 2005 12:02 am
Location: Long Island, New York

Post by nickman013 »

oh..

i dont know how to find people's isp domain, sorry..
User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

RedHatCore
Forum Newbie
Posts: 3
Joined: Mon Aug 22, 2005 10:43 am
Contact:

Post by RedHatCore »

thank you!
Post Reply