Re: Grab and print user IP address
| From: | Dream | Date: | Mon, 12 Mar 2001 11:10:45 +0000 |
| Subject: | Re: Grab and print user IP address | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43454@lists.php.net to get a copy of this message | ||
Thanks, michi....
Just a question, what means the tag <PRE>?
thanks!
marc
<mailing_list@gmx.at> escribió en el mensaje
news:13896.984394797@www12.gmx.net...
> > 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>