Re: php/apache $remote_addr variable help!

From: Date: Wed, 05 Sep 2001 02:22:53 +0000
Subject: Re: php/apache $remote_addr variable help!
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9191@lists.php.net to get a copy of this message
--- pasupathy <hippy@pd.jaring.my> wrote: > > hello, please help > > the <? echo $remote_addr ?> script won't return the > IP address of the > viewer of my remote webpage, Try <?php echo HTTP_SERVER_VARS['REMOTE_ADDR']; ?> also try <?php echo phpinfo(); ?> It will tell you all the vars available, and you can see if register_globals is turned off (which is why you need to use HTTP_SERVER_VARS[]) Cheers, Bryan __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com

« previous php.windows (#9191) next »