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"><<a href="mailto:chip@chipbennett.net">chip@chipbennett.net</a>></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:'Times New Roman';font-size:medium"><pre style="word-wrap:break-word;white-space:pre-wrap">
Copyright <?php echo date('Y') . ' ' . substr($_SERVER['HTTP_HOST'], 4, 100); ?></pre></span></div></blockquote><div>I don't know what it'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>