Re: Grab and print user IP address

From: Date: Mon, 12 Mar 2001 10:59:57 +0000
Subject: Re: Grab and print user IP address
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43451@lists.php.net to get a copy of this message
> Hi! > > I need just a little script so I can get and print in browser the > currently > users IP address and if possible, browser type, etc. <html> <body> <pre> <? echo "Your IP-Address: $HTTP_SERVER_VARS[REMOTE_ADDR]\n"; echo "Your Browser : $HTTP_SERVER_VARS[HTTP_USER_AGENT]\n"; ?> </pre> </body> </html> HTH michi -- Sent through GMX FreeMail - http://www.gmx.net

« previous php.general (#43451) next »