D dbzkid In Runtime Messages 129 Jan 20, 2007 #1 is there a way to program an html to send some ones ip adress to your e-mail? like an html that some one visits on a website and send you their ip address through e-mail?
is there a way to program an html to send some ones ip adress to your e-mail? like an html that some one visits on a website and send you their ip address through e-mail?
M ^Mike^ Fully Optimized Messages 2,958 Jan 20, 2007 #2 Do you mean if someone visits your website, then an automatic script sends their ip address to you?
DJ-CHRIS1 Golden Master Messages 5,203 Jan 20, 2007 #4 Yeah it's possible, but I dont exactly know how you would go about coding it
M ^Mike^ Fully Optimized Messages 2,958 Jan 20, 2007 #5 well you'd probably have to find a pre-made script. I'd do some searching on Google
C colorblindjimbo In Runtime Messages 195 Jun 17, 2008 #6 Look up the following two scripts, and then work on combining them. 1. PHP-Mail Script (You'll need an SMTP server) 2. PHP-IP Address Logger (or how to save an IP address into a variable). Then just stick the IP variable into the mail.
Look up the following two scripts, and then work on combining them. 1. PHP-Mail Script (You'll need an SMTP server) 2. PHP-IP Address Logger (or how to save an IP address into a variable). Then just stick the IP variable into the mail.
hascet Fully Optimized Messages 3,218 Jun 17, 2008 #7 ^Your help is appreciated, and I realize that dates can sometimes be overlooked in a thread, but this thread is over a year old...
^Your help is appreciated, and I realize that dates can sometimes be overlooked in a thread, but this thread is over a year old...
root Site Team Staff member Messages 8,185 Location UK Jun 18, 2008 #8 there are two ways to get the IP address of someone who visits your site... either look in the server log files (work required = 0). or write a php script like this Code: <?php $ip = $_SERVER['REMOTE_ADDR']; $to = "your email" mail($to, 'visitor IP address', $ip); ?> you can condense that into a single line if you like Code: <?php mail('me@address.com', 'visitor IP address', $_SERVER['REMOTE_ADDR']); ?>
there are two ways to get the IP address of someone who visits your site... either look in the server log files (work required = 0). or write a php script like this Code: <?php $ip = $_SERVER['REMOTE_ADDR']; $to = "your email" mail($to, 'visitor IP address', $ip); ?> you can condense that into a single line if you like Code: <?php mail('me@address.com', 'visitor IP address', $_SERVER['REMOTE_ADDR']); ?>