Re: logging ip address when submitting a form

From: Date: Thu, 27 Mar 2003 18:22:00 +0000
Subject: Re: logging ip address when submitting a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141277@lists.php.net to get a copy of this message
$HTTP_X_FORWARDED_FOR phpinfo(); Check that its in your PHP Info. $REMOTE_ADDR will return the Remote Address. I use This small loop. if (!$HTTP_X_FORWARDED_FOR) { $HTTP_X_FORWARDED_FOR=$REMOTE_ADDR; } / Phil ----- Original Message ----- From: "Joakim Larsson" <joakimpl@kth.se> To: <php-general@lists.php.net> Sent: Friday, March 28, 2003 6:04 AM Subject: [PHP] logging ip address when submitting a form > Hello, > > Is there a command in php that would logg the ip address of the user viewing > the php file. > I need someway of finding out who posted the form. > > thanx > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#141277) next »