Re: set multiple variables

From: Date: Fri, 01 Oct 2004 21:53:11 +0000
Subject: Re: set multiple variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198463@lists.php.net to get a copy of this message
Joe Szilagyi wrote:
Hi, I have this working: if ($REMOTE_ADDR == "212.3.54.65") {
        header("Location: http://www.google.com/search?&q=huzzah");
Redirect browser
        exit;
        }
But I want to specify multiple IPs. What's the best recommended way for doing that?
There was one request for IN() fuction few hours ago. You ca either use the function suplied in the thread or use || operator: if ($REMOTE_ADDR == "212.3.54.65" || $REMOTE_ADDR == "212.3.54.64" ...) {

« previous php.general (#198463) next »