Re: Re: PHP retrieve Client machine name

From: Date: Fri, 18 Nov 2005 00:55:17 +0000
Subject: Re: Re: PHP retrieve Client machine name
Groups: php.windows 
Request: Send a blank email to php-windows+get-26515@lists.php.net to get a copy of this message
I Think the corret answer to this question is $REMOTE_ADDR or $_SERVER['REMOTE_ADDR']. This will return the IP address of the client that connects. - Frank > Hello, > > on 11/17/2005 02:42 PM Alf Stockton said the following: > > In a PHP 5.0 program running under Windows 2000 with Apache 2 I need to > > retrieve either the client machine name or the client machine IP. > > > > Is this possible ? > > > > Just enable Windows NTLM authentication in the PHP pages and use PHP > call GetEnv("LOGON_USER"); . > > -- > > Regards, > Manuel Lemos > > Metastorage - Data object relational mapping layer generator > http://www.metastorage.net/ > > PHP Classes - Free ready to use OOP components written in PHP > http://www.phpclasses.org/ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#26515) next »