Reply to Re: ip address question (trouble with remote_addr)

Your name:

Reply:


Posted by ojorus on 06/02/06 11:42

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"
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> skrev i
melding news:4480128f$0$31655$e4fe514c@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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация