Re: set multiple variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" ...)  {

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux