Hi chaps,
Im trying to write a quick routine that will detect whether the user connecting is from a valid IP address... but so far it wont detect that the ip i have specified, and the ip connecting are the same, even when i echo both values and i also check their types (both strings)... i have tried casting both as string types too...heres the code...
$ValidIP = "213.36.162.88";
//TESTING -- see if ip's are the same...
echo "ValidIP is " . $ValidIP . " and REMOTE_ADDR is " . $REMOTE_ADDR . "<p>";
if ($ValidIP == $REMOTE_ADDR)
{
echo "invalid connection";
}
else
{
echo "valid connection";
}
whats goin' on?