> I have problem with "REMOTE_ADDR" or "REMOTE_DOST".
>
> "REMOTE_ADDR" always return me 127.0.0.1 (localhost) !!!
> The php program is on remote server ( not locally ) - www.f2s.com.
>
> How can I get IP or HOST of the visitor ?
The problem might be, there is a proxy / redirection on the same server.
You might try HTTP_X_FORWARDED_FOR. ( or so... try test.php3 for exact
info... )
--
Krankenhaus Martha-Maria Nuernberg
EDV-Organisation
Michael Meinl
Tel: 0911/959-1493 -1493
Fax: 0911/959-1412 -1422
---
Linux - The choice of the GNU generation
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]