|  | 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
 ==================
  Navigation: [Reply to this message] |