Page 1 of 1

Posted: Fri Feb 27, 2004 7:32 pm
by ce18
how do u log someones ip address when they visit your site

pleez reply

i need a php snippet

:mrgreen:

Posted: Fri Feb 27, 2004 7:36 pm
by McGruff
ce18 wrote:how do u log someones ip address when they visit your site

pleez reply

i need a php snippet

:mrgreen:
Why do you want to do that?

Posted: Fri Feb 27, 2004 7:42 pm
by tim
A generic version:

//edit: yeah nvm, the prupose it seems he wants to log ips is for no good.

Posted: Sat Feb 28, 2004 5:45 am
by ce18
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

Posted: Sat Feb 28, 2004 7:30 am
by redhair
ce18 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
Can ya'll tell me how 2 connect the IP to my Troll-O-Meter :?:

Posted: Thu Mar 04, 2004 12:34 pm
by werlop
hey guys, ce18 is only 13, stop being so paranoid! :)

Anyways craig, ip address is stored in the $_SERVER super global

Code: Select all

<?php

// Assign the ip address to a var called ip
$ip = $_SERVER["REMOTE_ADDR"];

// Display IP address
print "IP Address - " . $ip;

?>
We all have to start somewhere :D

goodluck