RE: [PHP-WIN] Grab and print user's IP address
| From: | Michael Rudel | Date: | Mon, 12 Mar 2001 11:18:44 +0000 |
| Subject: | RE: [PHP-WIN] Grab and print user's IP address | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5957@lists.php.net to get a copy of this message | ||
<?php
echo "Remote IP: ".$REMOTE_ADDR."<BR>\n";
echo "Browser: ".$HTTP_USER_AGENT."<BR>\n";
?>
If you want to get more EnvVars, RTFM or use
the phpinfo() -function.
Greetinx,
Mike
-----Original Message-----
From: Dream [mailto:not@via.ble]
Sent: Monday, March 12, 2001 12:01 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Grab and print user's IP address
> 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.
>
> Thanks a lot!
>
> marc
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net