Code Comments
Programming Forum and web based access to our favorite programming groups.Hi all! I'm using fasttemplates and php on my website. The php-files work fine on their own, but under fasttemplates I cannot seem to retrieve the client's IP-address. Both $REMOTE_ADDR and $HTTP_SERVER_VARS["REMOTE_ADDR"] return null value. I suspect this might have to do with the http-header being sent at the wrong time, but I'm not sure. Could anyone please point me in the right direction? Sincerely, Sjur Rondestveit
Post Follow-up to this messageSjur Rondestveit wrote: > I'm using fasttemplates and php on my website. The php-files work fine > on their own, but under fasttemplates I cannot seem to retrieve the > client's IP-address. Both $REMOTE_ADDR and > $HTTP_SERVER_VARS["REMOTE_ADDR"] return null value. I suspect this > might have to do with the http-header being sent at the wrong time, > but I'm not sure. Could anyone please point me in the right direction? > Using PHP v4.1 or up? Then $_SERVER['REMOTE_ADDR'] is your friend... JW
Post Follow-up to this message"Janwillem Borleffs" <jw@jwscripts.com> wrote in message news:<4260e282$0$97792$dbd4d001@ne ws.euronet.nl>... > Sjur Rondestveit wrote: > > Using PHP v4.1 or up? Then $_SERVER['REMOTE_ADDR'] is your friend... > > > JW Thanks a lot, that really helped. Seems like $REMOTE_ADDR nor $HTTP_SERVER_VARS["REMOTE_ADDR"] are my friends :) Sincerely, Sjur Rondestveit
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.