RE: [PHP] Getting users IP address into a variable.
| From: | Merritt, Dave | Date: | Wed, 02 Oct 2002 16:01:57 +0000 |
| Subject: | RE: [PHP] Getting users IP address into a variable. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-118614@lists.php.net to get a copy of this message | ||
Try: $ip=$_SERVER['REMOTE_ADDR']
-----Original Message-----
From: Webmaster MBTRADINGCO [mailto:webmaster@mbtradingco.com]
Sent: Wednesday, October 02, 2002 1:08 PM
To: php-general@lists.php.net
Subject: [PHP] Getting users IP address into a variable.
I'm sure there has to be a way to verify which IP address is accessing
from. I need to establish a page where when I enter it records the IP
address I'm logging in from, to a database.
Problem is I can't seem a command in php that can assign that to a
variable, as in:
$ip=HTTP_GET_????
ANY IDEAS????
Thanks
Elliot J. Balanza
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
**************************************************************************************************
Any views, opinions or authorizations contained in this email are solely those of the
author and do not necessarily represent those of ArvinMeritor, Inc. If you are not
familiar with the corporate authority of the author, please obtain confirmation in writing
of the content of this email prior to taking any action on the basis of the information. If
you are not the intended recipient, you are hereby notified that any disclosure, copying
or distribution of the information enclosed is strictly prohibited.
**************************************************************************************************