You are here: Re: Subdomains Retaining The Logos From The Root Domain « PHP Programming Language « IT news, forums, messages
Re: Subdomains Retaining The Logos From The Root Domain

Posted by Jerry Stuckle on 06/22/06 03:29

Jim Carlock wrote:
> $_SERVER['DOCUMENT_ROOT'] returns the root path
> for the subdomain, which is different than the root path for
> the primary domain.
>
> Is there a global variable to get the path for the root domain?
>
> What's the best way to handle this when you want to keep
> use the logo for the root domain?
>

PHP doesn't know anything about the "root domain". It only knows which domain
you're currently using.

That's because the "root domain" is just another FQDN - and may reside on this
server, or another one anywhere in the world. Or, even if it is on the same
host, it might be in a completely different directory structure (nothing in common).

If you're using Apache, you can set up a link in your http.conf file; if you
don't have access to that you may be able to do it in your .htaccess file -
haven't tried. And, if course, if you're on Unix, you can set up a link to the
other directory.

Of, if you can't do any of the above, you can always copy the logo to another
directory within the subdomain's structure.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация