title: Host name validation in php
body: <p>How to validate the host name in PHP?</p>
  
  <p>That is if suppose am running my application server on <code>IP:192.168.1.77</code> and if the request contains the Host name other than <code>192.168.1.77</code> it should not allow the further processing.</p>
  
  <p>Any help or suggestion would be appreciated.</p>