* and then Daniel Schierbeck declared....
> I'd rather go with something like this:
> 
> $banned_ips = array('123.123.123.123', '321.321.321.321'); // Banned IPs
> 
> if (in_array($_SERVER['REMOTE_ADDR'], $banned_ips)) {
>       die('Dude, you\'re banned!');
> }
> 
> But if I were you I'd choose something more advanced.

I think in_array() sounds like a great solution, wonder if it's faster
than comparing each ooe with == ? thanks!

-- 
Nick W

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

Reply via email to