RE: [PHP] user's ip
| From: | Karl Phillipson | Date: | Tue, 07 Aug 2001 11:52:22 +0000 |
| Subject: | RE: [PHP] user's ip | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-61588@lists.php.net to get a copy of this message | ||
Read this:
http://www.php.net/manual/en/function.getenv.php
$ip = getenv ("REMOTE_ADDR");
==========================
Karl Phillipson
PHP SQL Programmer
Saffron Hill Ventures
67 Clerkenwell Road
London
EC1R 5BL
Saffron Hill: 0207 693 8300
Direct Line: 0207 693 8318
-----Original Message-----
From: Adrian D'Costa [mailto:adrian@pcsadvt.com]
Sent: 07 August 2001 11:25
To: php general list
Subject: [PHP] user's ip
Hi,
I am trying to get the ip address of any user browsing a particular page.
I tried $REMOTE_ADDR but that give me only the remote address. What would
be the best way?
Adrian
--
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