title: Comparing Ip addresses in php not working
body: <p>I'm trying to compare the user's IP to allowed IP's. It's saying that my IP isn't allowed when it echos <em><code>97.103.49.59You do not have permission to do that.</code></em> </p>
  
  <p>I'm trying to compare them like so:</p>
  
  <pre><code>$ip_address = $_SERVER['REMOTE_ADDR']; 
  echo "$ip_address";
  if(ip_adress=="97.103.49.59") { 
  header('Location: Blog.php');
  } else {
  echo "You do not have permission to do that.";
  }
  </code></pre>