Reply to Re: REMOTE_ADDR in IIS

Your name:

Reply:


Posted by Jerry Stuckle on 07/25/05 01:59

aabrahao wrote:
> Hi,
>
> In IIS 6, windows 2003 with php 4.3.11, the code REMOTE_ADDR
> does not show the IP, but the same page in apache2triad shows the
> IP.
>
>
> I tried
> <? $ip = getenv("REMOTE_ADDR"); print $ip; ?>
> and
> $_SERVER['REMOTE_ADDR']
>
> regards,
>
> http://www.DevPlug.com --Connecting Developers
> Posted from: http://www.devplug.com/ftopic57612.htm

The environment variables are set up by the server, and Apache and IIS don't
necessarily share the same values.

The suggestion to use phpinfo() is a good one - it will show you just what you
have in IIS - which will be different from Apache.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[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

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