Re: logging ip address when submitting a form

From: Date: Thu, 27 Mar 2003 22:52:20 +0000
Subject: Re: logging ip address when submitting a form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141326@lists.php.net to get a copy of this message
$_SERVER['REMOTE_ADDR'] will contain the remote user's IP address IF it is set by the user agent (browser). It's also worth noting that this IP address could be faked, could be rotated by their ISP on a request-by-request basis (eg all AOL users), could be that of their firewall or network gateway, etc etc. It's fine to log it, but don't rely on it for future visits, or anything like that :) Justin on 28/03/03 5:04 AM, Joakim Larsson (joakimpl@kth.se) wrote: > 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 > >

« previous php.general (#141326) next »