View Full Version : Collect posters IP and store it
royal_lemon
08-18-2006, 12:15 PM
I'm making a guestbook, and I have a form where people sign to it. But I also want to store the posters IP in the database. (So I can ban them later and so on)
Phill
08-18-2006, 12:22 PM
I'm making a guestbook, and I have a form where people sign to it. But I also want to store the posters IP in the database. (So I can ban them later and so on)
What language are you writing it in?
royal_lemon
08-18-2006, 12:54 PM
I'm writing it in PHP
Use $_SERVER["REMOTE_ADDR"], it contains the IP.
goughy000
08-18-2006, 01:20 PM
What language are you writing it in?
not that this is in the PHP section or anything..?
Use $_SERVER["REMOTE_ADDR"], it contains the IP.
you may have problems with some ISPs..
try
http://www.laughing-buddha.net/jon/php/remoteip/
works for me 100% so far
royal_lemon
08-18-2006, 01:22 PM
Thanks goughy!
Phill
08-18-2006, 01:23 PM
not that this is in the PHP section or anything..?
I swear when I originally replied to this thread, it was in another forum? :confused:
goughy000
08-18-2006, 01:29 PM
I swear when I originally replied to this thread, it was in another forum? :confused:
a mod might have moved it.. they should have made a note of it somewhere
royal_lemon
08-18-2006, 02:12 PM
It was in the MySQL forum
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.