Posted by Erwin Moller on 06/02/06 10:30
Erwin Moller wrote:
> ojorus wrote:
>
>> Hi.
>> I have a problem when I use the $_SERVER['remote_addr'].
>> I'm testing a script, and the strange thing is that remote_addr returns
>> an ip-address only sometimes, and not always. Why can that be?
>> Are there any other (better) methods of getting the ip-address?
>>
>> Ojorus
>
> Hi Ojorus,
>
> That is suprising because that IP is used to send the response to.
> Can you reproduce the empty $_SERVER['remote_addr'] yourself?
>
> What setup are you using? PHP-version/OS/webserver?
One addition: according to
http://koivi.com/apache-iis-php-server-array.php
both IIS and Apache support remote_adres.
>
> Regards,
> Erwin Moller
[Back to original message]
|