Re: [Phplib-users] Network username
Brought to you by:
nhruby,
richardarcher
|
From: Chris J. <ch...@ch...> - 2002-10-10 03:19:13
|
On Wed, Oct 09, 2002 at 01:20:35PM -0400, Poduje, Miguel (LanInfo) wrote:
> I have my webserver in a Solaris enviroment... But my users come from a
> Windows NT network...
> How can i get the IP addres and username to put it in php variables?
> thanks
For most users, the IP address (perhaps of an intermediate caching or firewall
proxy, not the actual user's workstation) is available from PHP via the
$_SERVER['REMOTE_ADDR'] variable.
Which username are you referring to? If you are using HTTP basic
authentication, the username would be in $_SERVER['PHP_AUTH_USER'] . Or are
you talking about using the Auth class in PHPLIB? In that case,
$auth->auth['uname'] would be a good bet.
--
..chris
|