You are here: Re: How to include optonial info when running on local server? « PHP Programming Language « IT news, forums, messages
Re: How to include optonial info when running on local server?

Posted by C. on 09/01/07 22:29

On 1 Sep, 08:29, Michael Fesser <neti...@gmx.de> wrote:
> .oO(Christian Aastorp <>)
>
> ><?php
> > if ($_SERVER['REMOTE_ADDR'] = "127.0.0.1") {
>
> ^
>
>
>
> >This worked spllendidly when I tested running our site locally using
> >the XAMPP-bundle. But when I copied the code out to the real server it
> >seems that all clients are found at 127.0.0.1!
>
> = != ==
>
> Micha


Strikes me that this is the easy problem to fix.

There are several things which could cause to this to be true - the
most obvious one to spring to mind is that there is a reverse proxy
sitting in front of the webserver with no transparency on the
conection.

C.

 

Navigation:

[Reply to this 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

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