Echo If IP is in Array
Posted: Sun Oct 22, 2006 1:07 pm
Hello,
I am trying to echo somthing so if the persons IP is in a array of IPs. I cannot get it to work. I am pretty sure I did it correctly.
My code now:
IP, IP are peoples ip addresses
I am trying to echo somthing so if the persons IP is in a array of IPs. I cannot get it to work. I am pretty sure I did it correctly.
My code now:
Code: Select all
<?
$ip = @$REMOTE_ADDR;
$authip = array('IP, IP, IP, IP');
if ($ip == $authip) { echo " bgcolor=orange" };
?>