Re: Getting a remote IP address
| From: | Vergoz Michael | Date: | Sat, 01 Jun 2002 21:25:29 +0000 |
| Subject: | Re: Getting a remote IP address | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84673@lists.php.net to get a copy of this message | ||
exactly.
----- Original Message -----
From: "Hans Spath" <ml.php.net@hans-spath.de>
To: <php-dev@lists.php.net>; "Hugo Gallo" <hugo@sweeteuphoria.com>
Sent: Saturday, June 01, 2002 10:36 PM
Subject: Re: [PHP-DEV] Getting a remote IP address
> At 01.06.2002 21:44 +0200, Vergoz Michael wrote:
> >please to not ask this question on this list.
> >
> >print($REMOTE_ADDR);
>
> Bad idea, won't work with register_globals=off.
>
> Instead do it this way:
>
> echo $_SERVER['REMOTE_ADDR'];
> or
> echo $HTTP_SERVER_VARS['REMOTE_ADDR'];
>
> regards,
> Hans Spath
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php