RE: [PHP] Getting a client's IP address
| From: | Dave Watkinson | Date: | Tue, 16 Oct 2001 10:35:46 +0000 |
| Subject: | RE: [PHP] Getting a client's IP address | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71191@lists.php.net to get a copy of this message | ||
$remoteip = getenv ("REMOTE_ADDR");
-----Original Message-----
From: Brian Aitken [mailto:b.aitken@hatii.gla.ac.uk]
Sent: 16 October 2001 11:42
To: php-general@lists.php.net
Subject: [PHP] Getting a client's IP address
Hiya
Anyone know if it's possible to get the client's IP address?
What I'm wanting to do is be able to differentiate between users
accessing
the system from the local intranet and users accessing the system from
anywhere else.
I've looked through the documentation and the only thing I could find
was a
user note that says:
"I filed a wishlist bug because I do not see any way to get the IP
address
of the client."
Anyone know if this is the case and if so is there another way to limit
access to local users?
Thanks
Brian
--
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