how to define that $_SERVER['HTTP_NAME'] and $_SERVER['SERVER_ADDR'] is changed in PHP?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10578075/creating-a-license-system">Creating a License System</a>  </p>
</blockquote>



<p>I have an script file (license.php) in a project and I need to know the exact what domain and ip is server is running now. I try too use <code>$_SERVER['HTTP_NAME']</code> and  <code>$_SERVER['SERVER_ADDR']</code> but it can nulled very easy by renaming license.php to license.org.php and make another license.php file and on that change <code>$_SERVER['HTTP_NAME']</code> and  <code>$_SERVER['SERVER_ADDR']</code> to a valid license and require license.org.php. so how I can get the real HTTP_NAME and SERVER_ADDR? any solutions?</p>

<p><strong>NOTE:</strong> all php files will encrypt by IonCube, so source codes is not available to users.</p>
