[theme-reviewers] What/Why Is This in a Footer Copyright Statement?

Jerry Johnson jmiloj at gmail.com
Wed Nov 3 20:07:27 UTC 2010


HTTP_HOST is what the client/user asked for as the target host of that
request.

So for most sites, it would return the _requested domain name_ from the url.

So, a page at http://www.yourdomain.com/about-us would return:

Copyright 2010 yourdomain.com

(it is stripping out the first 4 chars, assuming the domain starts with
www., and that part should be stripped off.)

I bet it works _perfectly_ on the site(s) it was created for.

Jerry Milo Johnson

On Wed, Nov 3, 2010 at 4:00 PM, Chip Bennett <chip at chipbennett.net> wrote:

> Found this in another Theme:
>
> Copyright <?php echo date('Y') . ' ' . substr($_SERVER['HTTP_HOST'], 4, 100); ?>
>
> I don't know what it's trying to do, other than pull something out of the
> HTTP header...
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20101103/d35f3a11/attachment.htm>


More information about the theme-reviewers mailing list