HTTP_HOST is what the client/user asked for as the target host of that request.<div><br></div><div>So for most sites, it would return the _requested domain name_ from the url.</div><div><br></div><div>So, a page at <a href="http://www.yourdomain.com/about-us">http://www.yourdomain.com/about-us</a> would return:</div>
<div><br></div><div>Copyright 2010 <a href="http://yourdomain.com">yourdomain.com</a></div><div><br></div><div>(it is stripping out the first 4 chars, assuming the domain starts with www., and that part should be stripped off.)</div>
<div><br></div><div>I bet it works _perfectly_ on the site(s) it was created for.</div><div><br></div><div>Jerry Milo Johnson<br><br><div class="gmail_quote">On Wed, Nov 3, 2010 at 4:00 PM, Chip Bennett <span dir="ltr">&lt;<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Found this in another Theme:<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span style="font-family:&#39;Times New Roman&#39;;font-size:medium"><pre style="word-wrap:break-word;white-space:pre-wrap">
Copyright &lt;?php echo date(&#39;Y&#39;) . &#39; &#39; . substr($_SERVER[&#39;HTTP_HOST&#39;], 4, 100); ?&gt;</pre></span></div></blockquote><div>I don&#39;t know what it&#39;s trying to do, other than pull something out of the HTTP header...</div>

<div><br></div><font color="#888888"><div><br></div></font></blockquote></div></div>