Go Back   Computer Forums > General Computing > Hardware
Click Here to Login
Join Computer forums Today


Closed Thread
 
Thread Tools Search this Thread Display Modes
 
Old 01-20-2007, 07:49 PM   #1
In Runtime
 
dbzkid's Avatar
 
Join Date: Jan 2007
Posts: 129
Question i have a question about ip addresses

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?
__________________

dbzkid is offline  
Old 01-20-2007, 08:30 PM   #2
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default Re: i have a question about ip addresses

Do you mean if someone visits your website, then an automatic script sends their ip address to you?
__________________

^Mike^ is offline  
Old 01-20-2007, 08:47 PM   #3
In Runtime
 
dbzkid's Avatar
 
Join Date: Jan 2007
Posts: 129
Default Re: i have a question about ip addresses

yea
dbzkid is offline  
Old 01-20-2007, 08:54 PM   #4
Golden Master
 
DJ-CHRIS's Avatar
 
Join Date: Apr 2006
Posts: 5,203
Send a message via AIM to DJ-CHRIS Send a message via MSN to DJ-CHRIS Send a message via Yahoo to DJ-CHRIS
Default Re: i have a question about ip addresses

Yeah it's possible, but I dont exactly know how you would go about coding it
DJ-CHRIS is offline  
Old 01-20-2007, 08:55 PM   #5
Fully Optimized
 
^Mike^'s Avatar
 
Join Date: Oct 2005
Posts: 2,958
Send a message via ICQ to ^Mike^ Send a message via AIM to ^Mike^ Send a message via MSN to ^Mike^ Send a message via Yahoo to ^Mike^
Default Re: i have a question about ip addresses

well you'd probably have to find a pre-made script. I'd do some searching on Google
^Mike^ is offline  
Old 06-17-2008, 10:46 PM   #6
In Runtime
 
Join Date: Dec 2007
Posts: 195
Default Re: i have a question about ip addresses

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.
colorblindjimbo is offline  
Old 06-17-2008, 11:21 PM   #7
Fully Optimized
 
hascet's Avatar
 
Join Date: Jul 2006
Posts: 3,218
Default Re: i have a question about ip addresses

^Your help is appreciated, and I realize that dates can sometimes be overlooked in a thread, but this thread is over a year old...
__________________
www.crazycomputers.org
hascet is offline  
Old 06-18-2008, 10:16 AM   #8
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,007
Default Re: i have a question about ip addresses

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']); ?>
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0