Posted: Fri Feb 27, 2004 7:32 pm
how do u log someones ip address when they visit your site
pleez reply
i need a php snippet

pleez reply
i need a php snippet
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Why do you want to do that?ce18 wrote:how do u log someones ip address when they visit your site
pleez reply
i need a php snippet
Can ya'll tell me how 2 connect the IP to my Troll-O-Meterce18 wrote:im sorta trying 2 learn here
i want to kno how 2 send the ip with the mail
i already know how 2 send an automatic mail, i just dont know how to send the ip address with it
please help all you nice people out there
Code: Select all
<?php
// Assign the ip address to a var called ip
$ip = $_SERVER["REMOTE_ADDR"];
// Display IP address
print "IP Address - " . $ip;
?>