$ENV{'REMOTE_ADDR'}

From: Date: Wed, 31 Oct 2001 20:07:09 +0000
Subject: $ENV{'REMOTE_ADDR'}
Groups: php.general 
Request: Send a blank email to php-general+get-73065@lists.php.net to get a copy of this message
In perl I do something like this: if (!($ENV{'REMOTE_ADDR'} =~ /\b(132\.210)/)) or ... $ENV{'REMOTE_HOST'} PHP is not Perl. So how do I parse the user's remote address or host to display one thing if IP = 127.0.0.1, another if = 209.247.2.3 another if host = "remote.somewhere.com" else echo Blah"; John

« previous php.general (#73065) next »