Hi!
The server where the php-script is located is Apache/1.3.33. (Shared host)
X-Powered-By: PHP/5.0.4
When I test the script locally on my apache-installation, everything works
fine. But when I upload it to the server I use, the strange error occour;
the IP-address is only returned from time to time, and not always.
It also seems that when the server is quite busy, the problem increases.
I don't have a clue how to solve this...
Ojorus
"Erwin Moller"
<si******************************************@spam yourself.com> skrev i
melding news:44***********************@news.xs4all.nl...
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?
Regards,
Erwin Moller