$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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php